import type { FC, MouseEvent } from "react"; import type { MenuModel } from "../../menus"; import type { IconButtonProps } from "../IconButton"; import type { SvgIconProps } from "../SvgIcon"; /** * Properties for the `MenuButton` component. */ export interface MenuButtonProps extends Omit { /** * The menu containing items to display in the dropdown. */ menu: MenuModel; /** * The size of the icon displayed within the button. */ iconSize?: SvgIconProps["fontSize"]; /** * A callback for when the menu is closed. */ onClose?: (event: MouseEvent) => void; /** * The open state of the menu if open state controlled via prop. */ isOpen?: boolean; /** * Additional component which is being sent as `children` prop to the * BoundMenu. */ additionalComponent?: React.ReactNode; } declare const MenuButton: FC; export default MenuButton;