"use client"; import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, } from "@/components/ui/sheet"; import { Button, buttonVariants } from "@/components/ui/button"; import Link from "next/link"; import { cn } from "@/lib/utils"; import Logo from "@/components/logo"; import { useState } from "react"; import { AlignRight } from "lucide-react"; import { getWhatsAppUrl } from "@/lib/whatsapp"; import { WhatsAppIcon } from "@/components/ui/whatsapp-icon"; import { SETTINGS_QUERY_RESULT, NAVIGATION_QUERY_RESULT } from "@/sanity.types"; type SanityLink = NonNullable[number]; export default function MobileNav({ navigation, settings, }: { navigation: NAVIGATION_QUERY_RESULT; settings: SETTINGS_QUERY_RESULT; }) { const [open, setOpen] = useState(false); return (
Vietnam Wedding Guide Bespoke Destination Weddings & Editorial Guides
    {navigation[0]?.links && navigation[0]?.links?.length > 0 ? ( navigation[0]?.links?.map((navItem: SanityLink) => { const title = navItem.title?.trim().toLowerCase() === "inquire now" ? "Contact" : navItem.title; const href = navItem.title?.trim().toLowerCase() === "inquire now" ? "/contact" : navItem.href || "#"; return (
  • setOpen(false)} href={href} target={navItem.target ? "_blank" : undefined} rel={navItem.target ? "noopener noreferrer" : undefined} className="block py-2 text-base font-medium text-brand-dark hover:text-brand-gold transition-colors" > {title}
  • ); }) ) : ( <>
  • setOpen(false)} href="/blog" className="block py-2 text-base font-medium text-brand-dark hover:text-brand-gold transition-colors" > Wedding Guides
  • setOpen(false)} href="/services/private-consultant" className="block py-2 text-base font-medium text-brand-dark hover:text-brand-gold transition-colors" > For Couples
  • setOpen(false)} href="/services/b2b" className="block py-2 text-base font-medium text-brand-dark hover:text-brand-gold transition-colors" > For Professionals
  • setOpen(false)} href="/about" className="block py-2 text-base font-medium text-brand-dark hover:text-brand-gold transition-colors" > About
  • setOpen(false)} href="/contact" className="block py-2 text-base font-medium text-brand-dark hover:text-brand-gold transition-colors" > Contact
  • )}
); }