"use client"; import { AnimatePresence, motion } from "motion/react"; import Image from "next/image"; import type { ReactNode } from "react"; import { mobileMenuVariants } from "@/lib/motion"; /** * Animated mobile menu sheet, split out of `MobileNav` so `motion/react` only * ships once the hamburger menu is opened instead of on every public page. */ export default function MobileNavPanel({ open, menuId, menuRef, brandLabel, closeLabel, children, }: { open: boolean; menuId: string; menuRef: React.RefObject; brandLabel: string; closeLabel: string; children: ReactNode; }) { return ( {open ? (
{brandLabel} {closeLabel}
{children}
) : null}
); }