"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { FileClock, Hexagon } from "lucide-react"; import { cn } from "@/lib/utils"; import type { AuthUser } from "@/lib/auth/auth-context"; import { isNavActive, type NavItem, visibleNavGroups } from "./nav-config"; function SidebarLink({ item, pathname }: { item: NavItem; pathname: string }) { const Icon = item.icon; const isActive = isNavActive(pathname, item.href); return ( {item.label} ); } export function Sidebar({ user }: { user: AuthUser }) { const pathname = usePathname(); const groups = visibleNavGroups(user); return ( // The page scrolls on the window; the sidebar stays put beside it and // scrolls on its own when the nav is taller than the screen. It is a // sibling of the page content, so its overflow cannot capture sticky // elements there (StickySubmit). ); }