/* global React */ const { useEffect: useEffectHero } = React; /** Editorial hero with rising words. * Pass `lines` as an array of arrays: each line is a list of {text, italic?}. * The final italic-ed line is offset (indent class) like the live homepage. */ function HeroDisplay({ lines, sub, primaryCta = 'Stuur me een berichtje', secondaryCta = 'Bekijk diensten', poster = 'assets/photo-anne-portrait.jpg', side = null }) { let delay = 0; return (

{lines.map((line, li) => ( {line.map((word, wi) => { const d = (delay += 60); return ( {word.text} {wi < line.length - 1 ? ' ' : null} ); })} {li < lines.length - 1 &&
}
))}

{sub}

{primaryCta} {secondaryCta}
); } window.HeroDisplay = HeroDisplay;