"use client"; import { Check } from "lucide-react"; import CardList from "@/components/cardStack/CardList"; import Button from "@/components/button/Button"; import MediaContent from "@/components/shared/MediaContent"; import Tag from "@/components/shared/Tag"; import { getButtonProps } from "@/lib/buttonUtils"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, CardAnimationType, TitleSegment } from "@/components/cardStack/types"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; type PricingPlan = { id: string; title: string; price: string; period: string; features: string[]; button: ButtonConfig; imageSrc: string; imageAlt?: string; }; interface PricingCardNineProps { plans: PricingPlan[]; animationType: CardAnimationType; title: string; titleSegments?: TitleSegment[]; description: string; tag?: string; tagIcon?: LucideIcon; buttons?: ButtonConfig[]; textboxLayout: TextboxLayout; useInvertedBackground: InvertedBackground; ariaLabel?: string; className?: string; containerClassName?: string; cardClassName?: string; textBoxTitleClassName?: string; textBoxDescriptionClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; titleImageWrapperClassName?: string; titleImageClassName?: string; cardContentClassName?: string; planImageWrapperClassName?: string; planImageClassName?: string; planTitleClassName?: string; planPriceClassName?: string; planButtonClassName?: string; planButtonTextClassName?: string; featuresListClassName?: string; featureItemClassName?: string; featureIconClassName?: string; featureTextClassName?: string; } const PricingCardNine = ({ plans, animationType, title, titleSegments, description, tag, tagIcon, buttons, textboxLayout, useInvertedBackground, ariaLabel = "Pricing section", className = "", containerClassName = "", cardClassName = "", textBoxTitleClassName = "", textBoxDescriptionClassName = "", textBoxClassName = "", textBoxTagClassName = "", textBoxButtonContainerClassName = "", textBoxButtonClassName = "", textBoxButtonTextClassName = "", titleImageWrapperClassName = "", titleImageClassName = "", cardContentClassName = "", planImageWrapperClassName = "", planImageClassName = "", planTitleClassName = "", planPriceClassName = "", planButtonClassName = "", planButtonTextClassName = "", featuresListClassName = "", featureItemClassName = "", featureIconClassName = "", featureTextClassName = "", }: PricingCardNineProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); const getButtonConfigProps = () => { if (theme.defaultButtonVariant === "hover-bubble") { return { bgClassName: "w-full" }; } if (theme.defaultButtonVariant === "icon-arrow") { return { className: "justify-between" }; } return {}; }; return ( {plans.map((plan) => (

{plan.title}

    {plan.features.map((feature, index) => (
  • {feature}
  • ))}
))}
); }; PricingCardNine.displayName = "PricingCardNine"; export default PricingCardNine;