refactor(ui): native angular menu component + usage in sidebar (#1229)

This commit is contained in:
Alex
2026-05-09 20:10:35 +01:00
committed by GitHub
parent ea02bafa33
commit e8c56e2f8f
9 changed files with 335 additions and 182 deletions
@@ -0,0 +1,18 @@
export interface MenuItem {
readonly label: string;
readonly icon?: string;
readonly routerLink?: readonly string[];
readonly action?: () => void;
readonly disabled?: boolean;
readonly children?: readonly MenuEntry[];
}
export interface MenuSeparator {
readonly separator: true;
}
export type MenuEntry = MenuItem | MenuSeparator;
export function isMenuSeparator(entry: MenuEntry): entry is MenuSeparator {
return 'separator' in entry && entry.separator === true;
}