import Link from "next/link"; import { HeaderControls } from "@/components/header-controls"; import { MainNav } from "@/components/main-nav"; import { getViewerSession } from "@/lib/popiart-api"; import { getLiveCopy } from "@/lib/live-copy"; import type { AppDictionary, Locale } from "@/lib/site-content"; function localize(locale: Locale, path: string) { if (!path || path === "/") { return `/${locale}`; } return `/${locale}${path}`; } export async function SiteChrome({ children, dictionary, locale, }: { children: React.ReactNode; dictionary: AppDictionary; locale: Locale; }) { const liveCopy = getLiveCopy(locale); const session = await getViewerSession(); return (
PA
{dictionary.brand.name} {dictionary.brand.subtitle}
{children}
); }