"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { LayoutDashboard, Globe, Layers, BarChart3, Settings, LogOut, KeyRound, History, Users } from "lucide-react"; import { Logo } from "./Logo"; import { cn } from "@/lib/utils"; const NAV = [ { href: "/dashboard", label: "Dashboard", icon: LayoutDashboard, admin: false }, { href: "/domains", label: "Domains", icon: Globe, admin: false }, { href: "/groups", label: "Gruppen", icon: Layers, admin: false }, { href: "/analytics", label: "Analytics", icon: BarChart3, admin: false }, { href: "/audit", label: "Audit-Log", icon: History, admin: true }, { href: "/users", label: "Benutzer", icon: Users, admin: true }, { href: "/settings", label: "Einstellungen", icon: Settings, admin: true }, { href: "/settings/api-tokens", label: "API-Tokens", icon: KeyRound, admin: true }, ]; export function Sidebar({ user }: { user: { email: string; role?: string } }) { const pathname = usePathname(); const isAdmin = user.role === "admin"; return ( ); }