import Link from "next/link"; import ComingSoonPanel from "@/components/ComingSoonPanel"; import type { HomeContent, HomeVariantContent } from "@/content/types"; import type { Locale } from "@/lib/i18n"; import { getEmailHref, getModeValue, isComingSoonMode } from "@/lib/site"; type HeroSectionProps = { locale: Locale; home: HomeContent; }; export default function HeroSection({ locale, home }: HeroSectionProps) { const activeHome: HomeVariantContent = getModeValue(home); const comingSoon = isComingSoonMode(); const emailHref = getEmailHref(); if (comingSoon) { return ; } return ( {activeHome.badge} {activeHome.kicker} {activeHome.title} {activeHome.description} {emailHref ? ( {activeHome.primaryCta} ) : ( {activeHome.primaryCta} )} {activeHome.secondaryCta} {activeHome.highlights.map((item) => ( {item.value} {item.label} ))} ); }
{activeHome.badge}
{activeHome.kicker}
{activeHome.description}