UNPKG

@e-group/material-module

Version:
31 lines (30 loc) 852 B
import { FC } from 'react'; import { ListProps } from '@material-ui/core'; import { RouteConfig } from 'react-router-config'; import { NestedItems, NestedListItemProps } from '@e-group/material/NestedListItem'; export interface EgRouteConfig extends RouteConfig { /** * If breadcrumbName defined it'll display in Breadcrumbs. */ breadcrumbName?: string; } export interface NestedSideMenuProps extends ListProps { /** * react router config routes. */ routes: EgRouteConfig[]; /** * current pathname */ pathname: string; /** * `NestedListItem` props. */ NestedListItemProps?: NestedListItemProps; /** * `NestedListItem` items props. */ NestedListItemItemsProps?: NestedItems; } declare const NestedSideMenu: FC<NestedSideMenuProps>; export default NestedSideMenu;