import type { ReactNode } from 'react'; import './blocks.css'; export interface CTABlockProps { title: string; subtitle?: string; primaryCtaLabel?: string; primaryCtaLink?: string; onPrimaryCtaClick?: () => void; secondaryCtaLabel?: string; secondaryCtaLink?: string; onSecondaryCtaClick?: () => void; backgroundImage?: string; variant?: 'default' | 'centered' | 'split'; children?: ReactNode; } export function CTABlock({ title, subtitle, primaryCtaLabel, primaryCtaLink, onPrimaryCtaClick, secondaryCtaLabel, secondaryCtaLink, onSecondaryCtaClick, backgroundImage, variant = 'default', children }: CTABlockProps) { return (

{title}

{subtitle &&

{subtitle}

} {children &&
{children}
}
{primaryCtaLabel && ( primaryCtaLink ? ( {primaryCtaLabel} ) : ( ) )} {secondaryCtaLabel && ( secondaryCtaLink ? ( {secondaryCtaLabel} ) : ( ) )}
); }