UNPKG

@gzup/macaw-ui-4

Version:

Gzup's UI component library

18 lines (17 loc) 558 B
import React from "react"; import { CustomLinkComponent, SidebarMenuItem } from "./types"; export interface MenuItemCommonProps { activeId: string; isMenuShrunk: boolean; menuItem: SidebarMenuItem; } export declare type MenuItemProps = MenuItemCommonProps & ({ onClick: (menuItem: SidebarMenuItem) => void; linkComponent?: never; } | { onClick?: never; linkComponent: CustomLinkComponent; }); export declare const menuWidth = 210; export declare const shrunkMenuWidth = 72; export declare const MenuItem: React.FC<MenuItemProps>;