"use client"; import Link from "next/link"; import Image from "@/components/ui/resilient-image"; import { usePathname } from "next/navigation"; import { BookOpenIcon, MenuIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle, DrawerTrigger, } from "@/components/ui/drawer"; const destinations = [ { href: "/", label: "หน้ารวม", icon: null }, { href: "/commission", label: "จ้างคำนวณทีม", icon: "/icon/commission.webp" }, { href: "/stygian", label: "ไกด์ Stygian", icon: "/icon/stygian.webp" }, ] as const; export function PublicNavigation() { const pathname = usePathname(); const isCurrent = (href: string) => href === "/" ? pathname === "/" : pathname.startsWith(href); return <>