import Link from 'next/link' import { parseLinkList, isTagListUrl } from 'ampless' import { MobileMenu } from './mobile-menu' interface Props { /** JSON-stringified linkList from theme.values.. */ links: string | undefined /** Optional logo image URL. When set, rendered as an ; the * siteName is used as alt text. Empty falls back to siteName text. */ logoUrl?: string /** Site name. Used as the brand text when no logo, and as alt * text on the logo image. */ siteName?: string /** Tailwind classes for the brand text wrapper (only when no logo). */ brandClassName?: string /** Tailwind classes for the logo ``. Defaults to a 32px-tall * auto-width sizing — themes can override for taller / specific * branding placements. */ logoClassName?: string className?: string } /** * Theme-agnostic header that consumes a `linkList` value (JSON string * from a theme manifest field). Renders a logo image when `logoUrl` * is set; otherwise shows `siteName` text. Themes pick the brand * styling (font size / weight) via `brandClassName` so each theme can * keep its own typographic identity. * * Responsive: the regular `