interface HeroSectionProps { headline: string subheadline: string | null ctaLabel: string ctaUrl: string isLoading?: boolean backgroundImage?: string | null } export default function HeroSection({ headline, subheadline, ctaLabel, ctaUrl, isLoading = false, backgroundImage, }: HeroSectionProps) { if (isLoading) { return ( {/* Headline skeleton */} {/* Subheadline skeleton */} {/* CTA skeleton */} ) } return ( {/* Imagem de fundo */} {backgroundImage && ( <> { (e.currentTarget as HTMLImageElement).style.display = 'none' }} /> {/* Overlay escuro para legibilidade */} > )} {headline} {subheadline && ( {subheadline} )} {ctaLabel} ) }
{subheadline}