import React from 'react'; import { ButtonProps, InputProps } from '@bigbinary/neetoui'; import { LinkProps } from 'react-router-dom'; type BlockProps = { label: string; url?: string; icon?: React.ReactNode; count?: number; active?: boolean; onEdit?: (...args: any[]) => any; onClick?: (...args: any[]) => any; className?: string; } & LinkProps & React.RefAttributes & React.DetailedHTMLProps, HTMLButtonElement>; type ItemProps = { label?: string; description?: string; active?: boolean; className?: string; } & React.DetailedHTMLProps, HTMLButtonElement>; type SubTitleProps = { iconProps?: ButtonProps[]; } & React.DetailedHTMLProps, HTMLDivElement>; type SearchProps = { isCollapsed?: boolean; onCollapse?: React.MouseEventHandler; } & InputProps; type AddNewProps = { label?: string; onClick?: React.MouseEventHandler; } & React.DetailedHTMLProps, HTMLDivElement>; /** * * Used in neeto products to show a collapsible menu which can be used for adding * * navigation options to view different sections. * * ![image](https://user-images.githubusercontent.com/12969853/225556542-ed4fd436-45d8-4eb5-8ffe-4a9e191d8fc1.png|height=200|width=300) * * @example * * import MenuBar from "@bigbinary/neeto-molecules/MenuBar"; * * const MenuBarContainer = ({ children }) => { * return ( *
* *
* ); * }; * @endexample * MenuBar with custom title * * @example * * import MenuBar from "@bigbinary/neeto-molecules/MenuBar"; * * const MenuBarContainer = ({ children }) => { * return ( *
* *
* ); * }; * @endexample * Props for MenuBar.Block: * * Props for MenuBar.AddNew: * * Props for MenuBar.SubTitle: * * Props for MenuBar.Search: * * Props for MenuBar.Item: * * @example * * import MenuBar from "@bigbinary/neeto-molecules/MenuBar"; * * const MenuBarContainer = ({ children }) => { * return ( *
* * * {}, * }, * ]} * > * * Subtitle * * * {}} /> * * * *
* ); * }; * @endexample */ declare const MenuBar: React.FC<{ title?: string; showMenu?: boolean; className?: string; children?: React.ReactNode | React.ReactNode[]; }> & { Block: React.FC; Item: React.FC; SubTitle: React.FC; Search: React.FC; AddNew: React.FC; }; export { MenuBar as default };