import type { ElementProps } from '$typings/index.js'; export type IMenuProps = { /** @deprecated */ menuList?: IMenuItemProps[]; menuItemsList?: IMenuItemProps[]; menuItemsInstances?: any[]; data?: T; density?: ElementProps['density']; selectedIndex?: number; hasIcon?: boolean; onMenuItemClick?: Function; actions?: Record void>; }; export type IMenuItemProps = { class?: string | undefined; text: string; action: string; icon?: string; iconColor: string; iconSize: string; divider?: boolean; dividerBefore?: boolean; data?: T; selected?: boolean; onMenuItemClick: () => void; itemIndex?: number | ElementProps['expansion']; };