export type CategorizedMenu = { [module: string]: MenuItem[]; }; export type MenuItem = { _id?: string; icon: string; module: string; navigateTo: string; roles: string[]; title: string; shortTitle?: string; navigateEquals?: string[]; selected?: boolean; }; export type User = { _id: string; profile?: any; rolName: string; profileImage: string; }; export type KOSMenuProps = { items: MenuItem[]; user?: User; drawerOpen?: boolean; loading?: boolean; sx?: Record; error?: boolean; homeUrl: string; isBackButtonEnable?: boolean; onBackAction?: () => void; onClickMenuItem?: (to: string | undefined) => void; };