import clsx from 'clsx'; import { Button } from '@/components/shared/ui/button'; import { GlowBg } from '@/components/shared/ui/glow-bg'; /** * A component meant to be used in the landing page. * * A simple section that shows a selling point and call to action button. */ export const LandingSaleCtaSection = ({ children, className, title, titleComponent, description, descriptionComponent, footerComponent, ctaHref = '#', ctaLabel, secondaryCtaHref = '#', secondaryCtaLabel, withBackground = false, withBackgroundGlow = false, variant = 'primary', backgroundGlowVariant = 'primary', }: { children?: React.ReactNode; className?: string; title?: string | React.ReactNode; titleComponent?: React.ReactNode; description?: string | React.ReactNode; descriptionComponent?: React.ReactNode; footerComponent?: React.ReactNode; ctaHref?: string; ctaLabel?: string; secondaryCtaHref?: string; secondaryCtaLabel?: string; withBackground?: boolean; withBackgroundGlow?: boolean; variant?: 'primary' | 'secondary'; backgroundGlowVariant?: 'primary' | 'secondary'; }) => { return (
{withBackgroundGlow ? (
) : null}
{title ? (

{title}

) : ( titleComponent )} {description ? (

{description}

) : ( descriptionComponent )}
{ctaLabel ? ( ) : null} {secondaryCtaLabel ? ( ) : null} {children}
{footerComponent}
); };