"use client"; import Link from "next/link"; import Image from "@/components/ui/resilient-image"; import { usePathname } from "next/navigation"; import { BookOpenIcon, ChartNoAxesCombinedIcon, MenuIcon } from "lucide-react"; import { Button, buttonVariants } 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" }, { href: "/analytics", label: "วิเคราะห์ข้อมูล", icon: null }, ] as const; export function PublicNavigation() { const pathname = usePathname(); const isCurrent = (href: string) => href === "/" ? pathname === "/" : pathname.startsWith(href); return <>