'use client'; import { Button } from '@/components/shared/ui/button'; import { GlowBg } from '@/components/shared/ui/glow-bg'; import { clsx } from 'clsx'; import { CheckIcon } from 'lucide-react'; import Link from 'next/link'; /** * A component meant to be used to show a pricing plan in the landing page, typically used with LandingPricingSection. */ export const LandingPricingPlan = ({ className, children, title, titleComponent, description, descriptionComponent, href = '#', onClick = () => {}, ctaText = 'Get started', price, discountPrice, priceSuffix, featured, highlighted, soldOut, }: { className?: string; children: React.ReactNode; title?: string; titleComponent?: React.ReactNode; description?: string; descriptionComponent?: React.ReactNode; href?: string; onClick?: () => void; ctaText?: string; price: string; discountPrice?: string; priceSuffix?: string; featured?: boolean; highlighted?: boolean; soldOut?: boolean; }) => { return (
{highlighted ? ( <>
) : null}
{title ? (

{title}

) : ( titleComponent )} {description ? (

{description}

) : ( descriptionComponent )}

{price} {discountPrice} {priceSuffix ? ( {priceSuffix} ) : null}

{Array.isArray(children) ? ( ) : ( children )}
); };