"use client" import { useEffect, useState } from "react" import { useAudienceMode } from "@/components/audience-mode-provider" import { Button } from "@/components/ui/button" import { Collapsible, CollapsibleContent } from "@/components/ui/collapsible" import { FlaskConical, Moon, Scale, Sun, Home, Info, BarChart3, LayoutGrid, FileText, Menu } from "lucide-react" import { useTheme } from "next-themes" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" export function Navigation() { const { theme, setTheme } = useTheme() const { mode, setMode } = useAudienceMode() const pathname = usePathname() const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const navItems = [ { href: "/", label: "Home", icon: Home, isActive: pathname === "/" }, { href: "/models", label: "Models", icon: LayoutGrid, isActive: pathname === "/models" || pathname?.startsWith("/models/") || pathname?.startsWith("/developers/") }, { href: "/evals", label: "Evaluations", icon: BarChart3, isActive: pathname === "/evals" || pathname?.startsWith("/evals/") }, { href: "/corpus", label: "Corpus", icon: FlaskConical, isActive: pathname === "/corpus" || pathname?.startsWith("/corpus/") }, { href: "/survey", label: "Survey", icon: FileText, isActive: pathname === "/survey" || pathname?.startsWith("/survey/") }, { href: "/about", label: "About", icon: Info, isActive: pathname === "/about" } ] useEffect(() => { setMobileMenuOpen(false) }, [pathname]) return (
EvalEval Logo Eval Cards Beta
Reading mode
) }