import clsx from 'clsx'; import { GlowBg } from '@/components/shared/ui/glow-bg'; import React from 'react'; /** * A component meant to be used in the landing page. * It shows a pricing section with a title, description, and can render columns of pricing plans. */ export const LandingPricingSection = ({ children, className, title, titleComponent, description, descriptionComponent, textPosition = 'center', 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; textPosition?: 'center' | 'left'; withBackground?: boolean; withBackgroundGlow?: boolean; variant?: 'primary' | 'secondary'; backgroundGlowVariant?: 'primary' | 'secondary'; }) => { const columnNumber = React.Children.count(children); return (
{withBackgroundGlow ? (
) : null}
{title ? (

{title}

) : ( titleComponent )} {description ? (

{description}

) : ( descriptionComponent )}
{children}
); };