import { IQueryParams } from "@leight-core/leight"; import { MenuItemProps } from "antd"; import { FC, ReactNode } from "react"; export interface IMenuItemProps extends Partial { /** * Menu item title, goes through translation. */ title: string; /** * Menu item href, goes through a link generator. */ href: string; /** * Menu icon */ icon: ReactNode; /** * Optional params for link generator. */ query?: IQueryParams; } export declare const MenuItem: FC; /** * Because MenuItem component **must have** a key which is duplicate with an ID (as a key is not possible to read), * this function let's user create a menu item with just an ID and icon. * * Basically it has the same behavior as MenuItem component. */ export declare function CreateMenuItem(title: string, href: string, icon: ReactNode, query?: IQueryParams, rest?: Partial): JSX.Element;