feat: fetch menu items from cms

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-16 22:41:30 +03:00
parent 173708addb
commit 3d985584fe
9 changed files with 82 additions and 62 deletions

View File

@@ -1573,6 +1573,11 @@ export type HomePageQuery = { __typename?: 'Query', homePage?: { __typename?: 'H
| { __typename: 'Error' }
| null> | null } | null };
export type MenuItemsQueryVariables = Exact<{ [key: string]: never; }>;
export type MenuItemsQuery = { __typename?: 'Query', categories: Array<{ __typename?: 'Category', slug: string, title?: string | null, group: Enum_Category_Group, sortOrder: number } | null> };
export type SiteConfigQueryVariables = Exact<{ [key: string]: never; }>;
@@ -1704,6 +1709,16 @@ export const HomePageDocument = new TypedDocumentString(`
}
}
`) as unknown as TypedDocumentString<HomePageQuery, HomePageQueryVariables>;
export const MenuItemsDocument = new TypedDocumentString(`
query MenuItems {
categories(pagination: {pageSize: 200}) {
slug
title
group
sortOrder
}
}
`) as unknown as TypedDocumentString<MenuItemsQuery, MenuItemsQueryVariables>;
export const SiteConfigDocument = new TypedDocumentString(`
query SiteConfig {
siteConfig {