'use client'; import type { CTAContent } from '@/lib/config/bot-pages'; import { BRAND_ACCENT } from '@/lib/config/colors'; interface CTASectionProps { content: CTAContent; tryLink: string; } export function CTASection({ content, tryLink }: CTASectionProps) { const { title, subtitle, primaryButton, secondaryButton, metrics, note } = content; const accent = BRAND_ACCENT; const primaryHref = primaryButton.useTryLink ? tryLink : (primaryButton.href ?? '#'); return (

{title}

{subtitle &&

{subtitle}

}
{primaryButton.text} {secondaryButton && ( {secondaryButton.text} )}
{metrics && metrics.length > 0 && (
{metrics.map((metric, index) => (
{metric.dynamic ? '—' : metric.value}
{metric.label}
))}
)} {note &&

{note}

}
); }