fix: add navigation subitems
This commit is contained in:
@@ -1,14 +1,24 @@
|
||||
import type { AllRequestResponse } from "../utils/all"
|
||||
import { Edges } from "../utils/edges"
|
||||
|
||||
export type MenuItem = { uid: string; title: string; linkText: string }
|
||||
export type MenuItem = {
|
||||
uid: string
|
||||
title: string
|
||||
linkText: string
|
||||
subItems: MenuItem[] | null
|
||||
url?: string
|
||||
}
|
||||
|
||||
export type SidebarProps = { menuItems: MenuItem[] }
|
||||
|
||||
export type PageLink = { uid: string; title: string }
|
||||
export type PageLink = { uid: string; title: string; url?: string }
|
||||
|
||||
export type NavigationItem = {
|
||||
item: { pageConnection: Edges<PageLink>; link_text: string }
|
||||
item: {
|
||||
pageConnection: Edges<PageLink>
|
||||
link_text: string
|
||||
sub_items: NavigationItem[] | null
|
||||
}
|
||||
}
|
||||
|
||||
export type NavigationMyPages = { items: NavigationItem[] }
|
||||
|
||||
Reference in New Issue
Block a user