import * as React from 'react' import { cva, type VariantProps } from 'class-variance-authority' import { cn } from '@/lib/utils' const ctaSectionVariants = cva('py-16 px-6', { variants: { variant: { centered: 'text-center', 'left-aligned': 'text-left', }, background: { default: 'bg-background', muted: 'bg-muted', accent: 'bg-primary text-primary-foreground', subtle: 'bg-primary/5', }, }, defaultVariants: { variant: 'centered', background: 'muted', }, }) interface CTASectionProps extends React.ComponentProps<'section'>, VariantProps { heading: React.ReactNode description?: React.ReactNode actions?: React.ReactNode } function CTASection({ className, variant, background, heading, description, actions, children, ...props }: CTASectionProps) { return (

{heading}

{description && (

{description}

)} {actions && (
{actions}
)} {children}
) } export { CTASection, ctaSectionVariants }