import { localePath, type Locale } from '@/lib/i18n' import type { getHomeContent } from '@/lib/payload-content' import { groupReferences, type PartnerView, type Relationship } from '@/lib/partner-references' import ReferencesSection from './ReferencesSection' import { externalLinkProps } from '@/lib/external-link' type HomeViewProps = { content: Awaited> partners: PartnerView[] locale: Locale } export default function HomeView({ content: pageContent, partners, locale }: HomeViewProps) { const contactHref = localePath(locale, 'contact') const references = groupReferences(partners) const refCopy = pageContent.referencesSection const labels = refCopy.relationshipLabels const relationshipLabel = (relationship: Relationship) => ({ 'client-reference': refCopy.clientsTitle, 'technology-partner': labels.technologyPartner, infrastructure: labels.infrastructure, supplier: labels.supplier, 'technology-used': labels.technologyUsed, 'professional-partner': labels.professionalPartner, })[relationship] return (
{/* Hero Section */}
{/* Background decoration */}

{pageContent.hero.title}

{pageContent.hero.description}

{pageContent.hero.trustBullets && (
{pageContent.hero.trustBullets.map((bullet: string, i: number) => (
✓ {bullet}
))}
)}
{/* USP Section */}

{pageContent.about.title}

{(pageContent.about.usps ?? []).map((usp, index) => (
{usp.icon}

{usp.title}

{usp.description}

))}
{/* Services Section */}

{pageContent.services.title}

{pageContent.services.subtitle}

{pageContent.services.items.map((service, index) => (
{service.icon}

{service.title}

{service.description}

{pageContent.serviceFeatures.title}

    {service.features.map((feature, idx) => (
  • ✓ {feature}
  • ))}
{service.ctaText}
))}
{/* References (MITHOME-131): clients and partners are separate blocks. */} {/* CTA Section */}
{/* Animated background elements */}

{pageContent.cta.title}

{pageContent.cta.subtitle}

{pageContent.cta.button}
) }