dialog component, dash & service-monitoring slice
This commit is contained in:
@@ -10,12 +10,18 @@ import { isExternalLink } from '..';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export function NavItemRoot({ item, isCollapse, open = false, active, onOpen }: NavItemProps) {
|
||||
const { title, path, icon, info, children } = item;
|
||||
export function NavItemRoot({
|
||||
item,
|
||||
isCollapse,
|
||||
open = false,
|
||||
active = false,
|
||||
onOpen,
|
||||
}: NavItemProps) {
|
||||
const { title, path, info, children } = item;
|
||||
|
||||
const renderContent = (
|
||||
<>
|
||||
{icon && <ListItemIconStyle>{icon}</ListItemIconStyle>}
|
||||
<DotIcon active={active} />
|
||||
<ListItemTextStyle disableTypography primary={title} isCollapse={isCollapse} />
|
||||
{!isCollapse && (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user