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.
 
 
 
 
 
 

14 lines
473 B

type MuiMenuProps = import('@mui/material').MenuProps;
type MenuOptionalProps<T = unknown> = Pick<MuiMenuProps, 'open'> & {
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>;