import { clsx } from 'clsx'; import { CheckIcon, XIcon } from 'lucide-react'; import { GlowBg } from '@/components/shared/ui/glow-bg'; import { KeyPoint, LandingProductFeatureKeyPoints, } from '@/components/landing/LandingProductFeatureKeyPoints'; export function LandingProductProblemSolution({ className, title, titleComponent, description, descriptionComponent, problems = [], solutions = [], solutionTitle = 'Solution', solutionTitleComponent, problemTitle = 'Problem', problemTitleComponent, variant = 'primary', withBackground = false, withBackgroundGlow = false, backgroundGlowVariant = 'primary', textPosition = 'center', }: { className?: string; title?: string; titleComponent?: React.ReactNode; description?: string; descriptionComponent?: React.ReactNode; problems?: KeyPoint[]; solutions?: KeyPoint[]; solutionTitle?: string; solutionTitleComponent?: React.ReactNode; problemTitle?: string; problemTitleComponent?: React.ReactNode; variant?: 'primary' | 'secondary'; withBackground?: boolean; withBackgroundGlow?: boolean; backgroundGlowVariant?: 'primary' | 'secondary'; textPosition?: 'center' | 'left'; }) { return (
{withBackgroundGlow ? (
) : null}
{title || titleComponent || description || descriptionComponent ? (
{title ? (

{title}

) : ( titleComponent )} {description ? (

{description}

) : ( descriptionComponent )}
) : null}
{problems.length ? (
{problemTitle ? (

{problemTitle}

) : null} {problemTitleComponent ? problemTitleComponent : null} } iconClassName="!text-red-500" className="!mt-0 text-left" />
) : null} {solutions.length ? (
{solutionTitle ? (

{solutionTitle}

) : null} {solutionTitleComponent ? solutionTitleComponent : null} } iconClassName="!text-green-500" className="!mt-0 text-left" />
) : null}
); }