🛸 Makes menu reactive to features

This commit is contained in:
Rune Harlyk
2024-08-19 21:25:25 +02:00
committed by Rune Harlyk
parent 47dd527c70
commit 1ecc30fb21
+2 -10
View File
@@ -40,18 +40,10 @@
href?: string; href?: string;
feature: boolean; feature: boolean;
active?: boolean; active?: boolean;
submenu?: subMenuItem[]; submenu?: menuItem[];
}; };
type subMenuItem = { $: menuItems = [
title: string;
icon: ConstructorOfATypedSvelteComponent;
href: string;
feature: boolean;
active: boolean;
};
let menuItems = [
{ {
title: 'Controller', title: 'Controller',
icon: MdiController, icon: MdiController,