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
+2 -2
View File
@@ -1,7 +1,7 @@
import Link from "next/link";
import type { CommonContent, HomeContent, HomeVariantContent } from "@/content/types";
import type { Locale } from "@/lib/i18n";
import { getEmailHref, isComingSoonMode } from "@/lib/site";
import { getEmailHref, getModeValue, isComingSoonMode } from "@/lib/site";
type HeroSectionProps = {
locale: Locale;
@@ -10,7 +10,7 @@ type HeroSectionProps = {
};
export default function HeroSection({ locale, home, common }: HeroSectionProps) {
const activeHome: HomeVariantContent = isComingSoonMode() ? home.comingSoon : home.full;
const activeHome: HomeVariantContent = getModeValue(home);
const emailHref = getEmailHref();
return (