"use client"; import { Check } from "lucide-react"; import CardList from "@/components/cardStack/CardList"; import Tag from "@/components/shared/Tag"; import Button from "@/components/button/Button"; 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; tag: string; tagIcon?: LucideIcon; price: string; period: string; description: string; button: ButtonConfig; featuresTitle: string; features: string[]; }; interface PricingCardFiveProps { 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; planTagClassName?: string; planPriceClassName?: string; planPeriodClassName?: string; planDescriptionClassName?: string; planButtonClassName?: string; planButtonTextClassName?: string; featuresTitleClassName?: string; featuresListClassName?: string; featureItemClassName?: string; featureIconClassName?: string; featureTextClassName?: string; } const PricingCardFive = ({ 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 = "", planTagClassName = "", planPriceClassName = "", planPeriodClassName = "", planDescriptionClassName = "", planButtonClassName = "", planButtonTextClassName = "", featuresTitleClassName = "", featuresListClassName = "", featureItemClassName = "", featureIconClassName = "", featureTextClassName = "", }: PricingCardFiveProps) => { 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.price} {plan.period}

{plan.description}

{plan.featuresTitle}

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