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 } ] }*/ ]; }