import Link from "next/link"; import type { AppDictionary, Locale } from "@/lib/site-content"; function localize(locale: Locale, path: string) { if (!path || path === "/") { return `/${locale}`; } return `/${locale}${path}`; } export function SiteChrome({ children, dictionary, locale, }: { children: React.ReactNode; dictionary: AppDictionary; locale: Locale; }) { return (
PA
{dictionary.brand.name} {dictionary.brand.subtitle}
中文 EN
{dictionary.nav.login}
{children}
); }