"use client"; import { useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Sheet, SheetTrigger, SheetContent, SheetTitle } from "@/components/ui/sheet"; const links = [ { name: "Home", href: "/" }, { name: "Docs", href: "/introduction" }, { name: "Compatibility", href: "/compatibility" }, ]; function isCurrent(href: string, pathname: string): boolean { if (href === "/") return pathname === "/"; if (href === "/compatibility") return pathname === "/compatibility"; return pathname !== "/" && pathname !== "/compatibility"; } export function HeaderNav() { const pathname = usePathname(); return ( ); } export function HeaderMobileMenu() { const [open, setOpen] = useState(false); const pathname = usePathname(); return ( Site menu ); }