Last updated
/*************************** LIST ITEM BUTTON - STYLE ***************************/
interface Props {
item: NavItemType;
level?: number;
}
/*************************** MINI DRAWER - ITEM ***************************/
export default function NavItem({ item, level = 0 }: Props) {
...
return (
...
<DynamicIcon
name={item.icon as DynamicIconProps['name']}
size={22}
stroke={1.5}
color={isSelected ? theme.palette.text.primary : theme.palette.text.secondary}
/>
...
)}
...
</ListItemButton>
);
}
/*************************** MENU ITEMS - APPLICATIONS ***************************/
const manage: NavItemType = {
id: 'group-manage',
title: <FormattedMessage id="manage" />,
icon: 'IconBrandAsana',
type: 'group',
children: [
{
...,
icon: 'IconLayoutGrid'
},
...
]
};
export default manage;