Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
529 B

type MuiMenuProps = import('@mui/material').MenuProps;
type MenuOptionalProps<T = unknown> = Pick<MuiMenuProps, 'open'> & {
getItemDisabled?: (key: string, value: T) => boolean;
items?: Record<string, T>;
muiMenuProps?: Partial<MuiMenuProps>;
onItemClick?: (
key: string,
value: T,
...parent: Parameters<MuiMenuItemClickEventHandler>
) => ReturnType<MuiMenuItemClickEventHandler>;
renderItem?: (key: string, value: T) => import('react').ReactNode;
};
type MenuProps<T = unknown> = MenuOptionalProps<T>;