🛸 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;
feature: boolean;
active?: boolean;
submenu?: subMenuItem[];
submenu?: menuItem[];
};
type subMenuItem = {
title: string;
icon: ConstructorOfATypedSvelteComponent;
href: string;
feature: boolean;
active: boolean;
};
let menuItems = [
$: menuItems = [
{
title: 'Controller',
icon: MdiController,