{section.label && (
<>
{sIdx > 0 &&
}
0 ? 4 : 0}>
{section.label}
>
)}
{section.items.map((item: any) =>
item.children ? (
}
defaultOpened={item.children.some((c: any) =>
location.pathname.startsWith(c.path),
)}
data-tour={item.tourId || undefined}
>
{item.children.map((child: any) => (
go(child.path)}
/>
))}
) : (
}
active={location.pathname === item.path}
onClick={() => go(item.path!)}
data-tour={item.tourId || undefined}
/>
),
)}
))}
{user?.isSuperadmin && (
<>