@grandlinex/react-components
Version:
24 lines (23 loc) • 606 B
TypeScript
import React from 'react';
import { INames } from '@grandlinex/react-icons';
export type MenuItemLabelType = {
pos: 'left' | 'right' | 'bottom';
value: number;
color?: string;
};
export type MenuItemType = {
key: string;
icon: INames;
name: string;
show?: () => boolean;
type?: string;
onClick?: () => void;
labelNum?: MenuItemLabelType[];
};
export type SideBarProps = {
topMenu: MenuItemType[];
botMenu: MenuItemType[];
onClickItem?: (key: MenuItemType) => void;
};
declare function Sidebar(props: SideBarProps): React.JSX.Element;
export { Sidebar };