'use client' import { useState } from 'react' import Link from 'next/link' import { isTagListUrl, type LinkListItem } from 'ampless' import { Sheet, SheetClose, SheetContent, SheetTrigger } from '@ampless/runtime/ui' interface Props { items: LinkListItem[] className?: string } /** * Mobile nav for SiteHeader. Animated hamburger toggle that opens a * right-side Sheet drawer with the linkList. The button morphs from * three lines to an X via CSS transforms when the sheet is open. ESC, * overlay click, and link click all close the drawer. * * Tag references collapse to plain text — same rule as the desktop * header. Sidebars are the right surface for tag-driven post lists. */ export function MobileMenu({ items, className }: Props) { const [open, setOpen] = useState(false) return ( {/* Three lines that morph into an X. Radix sets `data-state` ("open" / "closed") on this trigger element; the spans below tap into it via `group-data-[state=open]:`. */} Menu ) }