init
This commit is contained in:
121
frontend/lib/menu-list.ts
Normal file
121
frontend/lib/menu-list.ts
Normal file
@@ -0,0 +1,121 @@
|
||||
import { Tag, SquarePen, Barcode, LucideIcon } from "lucide-react";
|
||||
|
||||
type Submenu = {
|
||||
href: string;
|
||||
label: string;
|
||||
active?: boolean;
|
||||
};
|
||||
|
||||
type Menu = {
|
||||
href: string;
|
||||
label: string;
|
||||
active?: boolean;
|
||||
icon: LucideIcon;
|
||||
submenus?: Submenu[];
|
||||
};
|
||||
|
||||
type Group = {
|
||||
groupLabel: string;
|
||||
menus: Menu[];
|
||||
};
|
||||
|
||||
export function getMenuList(pathname: string): Group[] {
|
||||
return [
|
||||
/*
|
||||
{
|
||||
groupLabel: "",
|
||||
menus: [
|
||||
{
|
||||
href: "/dashboard",
|
||||
label: "Dashboard",
|
||||
icon: LayoutGrid,
|
||||
submenus: []
|
||||
}
|
||||
]
|
||||
},
|
||||
*/
|
||||
{
|
||||
groupLabel: "Flächendruck Service",
|
||||
menus: [
|
||||
{
|
||||
href: "/dashboard/generateFlaechendruck",
|
||||
label: "Generieren",
|
||||
icon: Tag,
|
||||
active: pathname === "/dashboard/generateFlaechendruck",
|
||||
},
|
||||
{
|
||||
href: "/dashboard/vorlagenFlaechendruck",
|
||||
label: "Vorlagen",
|
||||
icon: SquarePen,
|
||||
active: pathname === "/dashboard/vorlagenFlaechendruck",
|
||||
|
||||
/*submenus: [
|
||||
{
|
||||
href: "/posts",
|
||||
label: "All Posts"
|
||||
},
|
||||
{
|
||||
href: "/posts/new",
|
||||
label: "New Post"
|
||||
}
|
||||
]*/
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
groupLabel: "Rollendruck Service",
|
||||
menus: [
|
||||
{
|
||||
href: "/dashboard/generateRollendruck",
|
||||
label: "Generieren",
|
||||
icon: Tag,
|
||||
active: pathname === "/dashboard/generateRollendruck",
|
||||
},
|
||||
{
|
||||
href: "/dashboard/vorlagenRollendruck",
|
||||
label: "Vorlagen",
|
||||
icon: SquarePen,
|
||||
active: pathname === "/dashboard/vorlagenRollendruck",
|
||||
|
||||
/*submenus: [
|
||||
{
|
||||
href: "/posts",
|
||||
label: "All Posts"
|
||||
},
|
||||
{
|
||||
href: "/posts/new",
|
||||
label: "New Post"
|
||||
}
|
||||
]*/
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
groupLabel: "Billbee Service",
|
||||
menus: [
|
||||
{
|
||||
href: "/dashboard/updateOrders",
|
||||
label: "Update Sendungen",
|
||||
icon: Barcode,
|
||||
active: pathname === "/dashboard/updateOrders",
|
||||
},
|
||||
],
|
||||
},
|
||||
/*
|
||||
{
|
||||
groupLabel: "Settings",
|
||||
menus: [
|
||||
{
|
||||
href: "/users",
|
||||
label: "Users",
|
||||
icon: Users
|
||||
},
|
||||
{
|
||||
href: "/account",
|
||||
label: "Account",
|
||||
icon: Settings
|
||||
}
|
||||
]
|
||||
}*/
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user