"use client" import { useEffect, useState } from "react" import { Menu, Moon, Sun, X } 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 pathname = usePathname() const [mobileOpen, setMobileOpen] = useState(false) const navItems = [ { href: "/", label: "Overview", isActive: pathname === "/", }, { href: "/models", label: "Models", isActive: pathname === "/models" || pathname?.startsWith("/models/") || pathname?.startsWith("/developers/"), }, { href: "/evals", label: "Evaluations", isActive: pathname === "/evals" || pathname?.startsWith("/evals/"), }, { href: "/help", label: "Help", isActive: pathname === "/help" || pathname?.startsWith("/help/"), }, { href: "/about", label: "About", isActive: pathname === "/about", }, { href: "/feedback", label: "Feedback", isActive: pathname === "/feedback", }, ] useEffect(() => { setMobileOpen(false) }, [pathname]) return ( <>
Evaluation Cards Beta ยท EvalEval
{mobileOpen && (
)}
) }