@if (sidebar.dndEnabled() && item.dragKind) { } @if (!item.isAction && sidebar.isExpandable(item)) {
} @if (item.isAction || !sidebar.isExpandable(item)) { }
@if (item.createActions?.length) { @for (a of item.createActions; track a) {
} }
@if (sidebar.isExpanded(item.id) && sidebar.hasChildren(item)) { @if (sidebar.dndEnabled() && item.dropKinds) {
@for (child of item.children; track child.id) { @if (sidebar.dndEnabled() && child.dragKind) { } @else { } }
} @else {
@for (child of item.children; track child.id) { }
} }