@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
7 lines (6 loc) • 542 B
TypeScript
import { SvgIconComponent } from '@mui/icons-material';
import { CustomTreeViewItem, IconType, ItemDataMap } from './types';
export declare const getIconComponent: (iconType: IconType | undefined, customIcon: SvgIconComponent | undefined) => SvgIconComponent;
export declare const getItemId: (item: CustomTreeViewItem) => string;
export declare const findItemPath: (items: CustomTreeViewItem[], targetId: string, currentPath?: string[]) => string[] | null;
export declare const buildItemDataMap: (items: CustomTreeViewItem[]) => ItemDataMap;