"use client"; /** * MobileNavToggle — hamburger button that opens the global section drawer * below the md breakpoint. * * Built on the project's wrapped shadcn Drawer (which composes vaul). The * raw `vaul` primitive + `asChild` pattern was unreliable here — the * wrapped components handle ref forwarding and portal mounting correctly * out of the box, and they already encode the project's z-index convention. * * Kept separate from the per-page MobileNav (which renders a book's * sidebar) so reading pages keep their existing drawer untouched. */ import { useState } from "react"; import Link from "next/link"; import { Menu } from "lucide-react"; import { cn } from "@/lib/utils"; import { Drawer, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle, DrawerTrigger, } from "@/components/ui/drawer"; type NavItem = { href: string; label: string }; const SECONDARY: NavItem[] = [ { href: "/disciples", label: "Disciples" }, { href: "/journals", label: "Journals" }, { href: "/magazines", label: "Magazines" }, { href: "/other-documents", label: "Other Documents" }, { href: "/about", label: "About" }, ]; export function MobileNavToggle({ items, }: { items: ReadonlyArray; }) { const [open, setOpen] = useState(false); return ( Prabhupāda Says Quickly jump between sections of Prabhupāda Says. ); }