UNPKG

jabb-astro-components

Version:
69 lines (64 loc) 1.38 kB
export {}; declare global { /** * comment */ namespace Menu { /** * @param name * @param href * @param ariaLabel * @param target ? * @param rel ? * @param subMenu ? */ export interface principal { name: string; href?: string; ariaLabel: string; target?: TargetPage; rel?: RelationLink; onClick?: () => void; subMenu?: { name: string; href: string; ariaLabel: string; target?: TargetPage; rel?: RelationLink; }[]; } export interface responsive { menu: principal[]; } /** * @param menu * @param img * @param alt * @param fixed * @param dark */ export interface menu1 { menu: Menu.principal[]; img: string; alt: string; fixed: boolean; dark?: string; className?: string; button?: Button.Button; logout?: () => Promise<void>; } export interface menu2 extends menu1 { position?: 'absolute' | 'fixed' | null; imgHeight?: string; } /** * @param pathname - usePathname from next/navigation; */ interface Aside { menu: Menu.principal[]; pathname: string; logout: () => Promise<void>; Link?: any; } } }