import { Button } from '@/components/ui' import { cn } from '@/lib/utils' import type { BlockByType } from '@c2s/payload-contracts/types' type CTABlockProps = Omit, 'blockType' | 'blockName'> export function CTABlock({ headline, description, buttons, backgroundColor = 'dark', }: CTABlockProps) { const bgClasses: Record = { dark: 'bg-espresso', light: 'bg-ivory', accent: 'bg-brass', } const firstButton = buttons?.[0] return (

{headline}

{description && (

{description}

)} {firstButton && ( )}
) }