Files
sass-mohfarawati/lib/root-navigation.ts
T
2026-03-07 14:10:30 +01:00

41 lines
832 B
TypeScript

import { LayoutDashboard, ShieldAlert, SwatchBook, type LucideIcon } from "lucide-react";
type RootNavigationCopy = {
overview: string;
maintenance: string;
uiKit: string;
};
export type RootNavItem = {
label: string;
href: string;
icon: LucideIcon;
active?: boolean;
};
export function getRootNavigation(
copy: RootNavigationCopy,
active: "overview" | "maintenance" | "ui-kit",
): RootNavItem[] {
return [
{
label: copy.overview,
href: "/root",
icon: LayoutDashboard,
active: active === "overview",
},
{
label: copy.maintenance,
href: "/root/maintenance",
icon: ShieldAlert,
active: active === "maintenance",
},
{
label: copy.uiKit,
href: "/root/ui-kit",
icon: SwatchBook,
active: active === "ui-kit",
},
];
}