"use client"; import { memo } from "react"; import CardStack from "@/components/cardStack/CardStack"; import PricingBadge from "@/components/shared/PricingBadge"; import PricingFeatureList from "@/components/shared/PricingFeatureList"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, CardAnimationTypeWith3D, TitleSegment } from "@/components/cardStack/types"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; type PricingPlan = { id: string; badge: string; badgeIcon?: LucideIcon; price: string; subtitle: string; features: string[]; }; interface PricingCardOneProps { plans: PricingPlan[]; carouselMode?: "auto" | "buttons"; uniformGridCustomHeightClasses?: string; animationType: CardAnimationTypeWith3D; 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; textBoxTitleImageWrapperClassName?: string; textBoxTitleImageClassName?: string; textBoxDescriptionClassName?: string; badgeClassName?: string; priceClassName?: string; subtitleClassName?: string; featuresClassName?: string; featureItemClassName?: string; gridClassName?: string; carouselClassName?: string; controlsClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; } interface PricingCardItemProps { plan: PricingPlan; shouldUseLightText: boolean; cardClassName?: string; badgeClassName?: string; priceClassName?: string; subtitleClassName?: string; featuresClassName?: string; featureItemClassName?: string; } const PricingCardItem = memo(({ plan, shouldUseLightText, cardClassName = "", badgeClassName = "", priceClassName = "", subtitleClassName = "", featuresClassName = "", featureItemClassName = "", }: PricingCardItemProps) => { return (
{plan.subtitle}