Repository URL to install this package:
|
Version:
4.0.29 ▾
|
import { ReactNode } from 'react';
import { SidebarItem } from '../SidebarItem/typings';
import { SidebarItemState } from '../SidebarItem/state';
import { SidebarGroupState } from './SidebarGroupState';
export interface SidebarItemMapper {
(state: SidebarItemState, index?: number): any;
}
export interface SidebarGroup {
store: Map<string, SidebarItem>;
add(item: SidebarItem): void;
}
export interface SidebarGroupRenderProp extends Function {
(props: SidebarGroupProps, state: SidebarGroupState): ReactNode;
}
export interface SidebarGroupProps {
className?: string;
nowrap?: boolean;
renderSidebarGroupList?: SidebarGroupRenderProp;
}