Fix runttime

This commit is contained in:
diyaa
2026-03-13 03:56:40 +01:00
parent d1ed5c641b
commit c9e9ae6b90
8 changed files with 75 additions and 35 deletions
+3 -2
View File
@@ -3,7 +3,7 @@ import LanguageSwitcher from "@/components/LanguageSwitcher";
import ThemeToggle from "@/components/ThemeToggle";
import type { Locale } from "@/lib/i18n";
import type { CommonContent } from "@/content/types";
import { isComingSoonMode } from "@/lib/site";
import { getModeValue, isComingSoonMode } from "@/lib/site";
type SiteHeaderProps = {
locale: Locale;
@@ -12,6 +12,7 @@ type SiteHeaderProps = {
export default function SiteHeader({ locale, common }: SiteHeaderProps) {
const isComingSoon = isComingSoonMode();
const commonVariant = getModeValue(common.variants);
return (
<header className="site-header">
@@ -20,7 +21,7 @@ export default function SiteHeader({ locale, common }: SiteHeaderProps) {
<Link href={`/${locale}`} className="brand">
{common.siteTitle}
</Link>
<span className="brand-tagline">{common.siteTagline}</span>
<span className="brand-tagline">{commonVariant.siteTagline}</span>
</div>
{!isComingSoon ? (