import { URL, UUID } from "../common"; import { Link } from "./link"; import { Page } from "./page"; export type MenuItemParent = { id: UUID; type: string; url: URL; }; export type MenuItem = { id: UUID; title: string; type: string; parent: MenuItemParent | null; link: Link; page: Page | null; }; export type Menu = { id: UUID; type: string; link: Link; items: MenuItem[]; };