import { ArrowLeft, LogOut } from "lucide-react"; import Link from "next/link"; import { redirect } from "next/navigation"; import { AppHeader } from "@/components/layout/app-header"; import { AppShell } from "@/components/layout/app-shell"; import { AppSidebar } from "@/components/layout/app-sidebar"; import { ThemeToggle } from "@/components/theme-toggle"; import { getLocalizedPath } from "@/lib/locale"; import { clearAdminSessionCookie, isAdminAuthenticated } from "@/lib/admin-auth"; import { getRootNavigation } from "@/lib/root-navigation"; import { Button } from "@/components/ui/button"; import { UiKitShowcase } from "@/components/ui/ui-kit-showcase"; export const dynamic = "force-dynamic"; const copy = { title: "UI Kit", subtitle: "Globale Referenz fuer das visuelle System im Root Bereich.", maintenance: "Wartungsmodus", overview: "Uebersicht", uiKit: "UI Kit", media: "Media", portfolio: "Portfolio", logout: "Ausloggen", backToSite: "Zur Website", }; export default async function RootUiKitPage() { const authenticated = isAdminAuthenticated(); if (!authenticated) { redirect("/root"); } async function logoutAction() { "use server"; clearAdminSessionCookie(); redirect("/root"); } const sidebarItems = getRootNavigation(copy, "ui-kit"); return (
} /> } header={} >
); }