import Link from "next/link"; import type { Locale } from "@/i18n/routes"; import { getDict } from "@/i18n/dictionaries"; import { LogoutButton } from "./logout-button"; export function AdminShell({ locale, title, active, children, }: { locale: Locale; title: string; active: "dashboard" | "profile" | "projects" | "newProject" | "editProject"; children: React.ReactNode; }) { const dict = getDict(locale); const items = [ { id: "dashboard", href: "/admin/dashboard", label: dict.admin.dashboardTitle }, { id: "profile", href: "/admin/profile", label: dict.admin.profileTitle }, { id: "projects", href: "/admin/projects", label: dict.admin.projectsTitle }, ] as const; return (
$ eldov.admin [{title}]
{children}
); }