import Link from "next/link"; import LanguageSwitcher from "@/components/LanguageSwitcher"; import ThemeToggle from "@/components/ThemeToggle"; import type { Locale } from "@/lib/i18n"; import type { CommonContent } from "@/content/types"; import { getModeValue, isComingSoonMode } from "@/lib/site"; type SiteHeaderProps = { locale: Locale; common: CommonContent; }; export default function SiteHeader({ locale, common }: SiteHeaderProps) { const isComingSoon = isComingSoonMode(); const commonVariant = getModeValue(common.variants); return (
{common.siteTitle} {commonVariant.siteTagline}
{!isComingSoon ? ( ) : null}
); }