feat: add initial my pages navigation
This commit is contained in:
18
types/requests/myPages/navigation.ts
Normal file
18
types/requests/myPages/navigation.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { AllRequestResponse } from "../utils/all"
|
||||
import { Edges } from "../utils/edges"
|
||||
|
||||
export type MenuItem = { uid: string; title: string; linkText: string }
|
||||
|
||||
export type SidebarProps = { menuItems: MenuItem[] }
|
||||
|
||||
export type PageLink = { uid: string; title: string }
|
||||
|
||||
export type NavigationItem = {
|
||||
item: { pageConnection: Edges<PageLink>; link_text: string }
|
||||
}
|
||||
|
||||
export type NavigationMyPages = { items: NavigationItem[] }
|
||||
|
||||
export type GetNavigationMyPagesData = {
|
||||
all_navigation_my_pages: AllRequestResponse<NavigationMyPages>
|
||||
}
|
||||
Reference in New Issue
Block a user