feat: add initial my pages navigation

This commit is contained in:
Arvid Norlin
2024-04-05 09:34:12 +02:00
parent a35daee3a6
commit e5876e4e14
4 changed files with 81 additions and 21 deletions

View 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>
}