mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
27 lines
741 B
TypeScript
27 lines
741 B
TypeScript
export type RenderProp<
|
|
P = React.HTMLAttributes<any> & {
|
|
ref?: React.Ref<any>;
|
|
},
|
|
> = (props: P) => React.ReactNode;
|
|
|
|
export interface MenuItemProps {
|
|
id?: string;
|
|
label?: string;
|
|
onClick?: (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => void;
|
|
icon?: React.ReactNode;
|
|
kbd?: string;
|
|
show?: boolean;
|
|
disabled?: boolean;
|
|
separate?: boolean;
|
|
hideOnClick?: boolean;
|
|
dialog?: React.ReactElement;
|
|
ariaLabel?: string;
|
|
ariaChecked?: boolean;
|
|
ref?: React.Ref<any>;
|
|
className?: string;
|
|
render?:
|
|
| RenderProp<React.HTMLAttributes<any> & { ref?: React.Ref<any> | undefined }>
|
|
| React.ReactElement<any, string | React.JSXElementConstructor<any>>
|
|
| undefined;
|
|
subItems?: MenuItemProps[];
|
|
}
|