"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { cn } from "@/lib/utils"; import { copyright } from "@/lib/brand"; import { BrandLogo } from "./brand-logo"; import { navSections, activeHref } from "./nav"; import { useSidebar } from "./sidebar-context"; export function Sidebar({ isSuperAdmin }: { isSuperAdmin: boolean }) { const pathname = usePathname(); const active = activeHref(pathname); const { collapsed } = useSidebar(); const sections = navSections.filter((s) => !s.superAdminOnly || isSuperAdmin); return ( ); }