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.
15 lines
473 B
15 lines
473 B
11 months ago
|
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>;
|