"use client"; import CardStack from "@/components/cardStack/CardStack"; import Button from "@/components/button/Button"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { getButtonProps } from "@/lib/buttonUtils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, CardAnimationType, TitleSegment, ButtonAnimationType } from "@/components/cardStack/types"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; import type { CTAButtonVariant } from "@/components/button/types"; type Feature = { id: string; title: string; subtitle: string; category: string; value: string; buttons?: ButtonConfig[]; }; interface FeatureCardTwentyEightProps { features: Feature[]; carouselMode?: "auto" | "buttons"; uniformGridCustomHeightClasses?: string; animationType: CardAnimationType; title: string; titleSegments?: TitleSegment[]; description: string; tag?: string; tagIcon?: LucideIcon; tagAnimation?: ButtonAnimationType; buttons?: ButtonConfig[]; buttonAnimation?: ButtonAnimationType; textboxLayout: TextboxLayout; useInvertedBackground: InvertedBackground; ariaLabel?: string; className?: string; containerClassName?: string; cardClassName?: string; textBoxTitleClassName?: string; textBoxTitleImageWrapperClassName?: string; textBoxTitleImageClassName?: string; textBoxDescriptionClassName?: string; cardTitleClassName?: string; subtitleClassName?: string; categoryClassName?: string; valueClassName?: string; footerClassName?: string; cardButtonClassName?: string; cardButtonTextClassName?: string; gridClassName?: string; carouselClassName?: string; controlsClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; } interface FeatureCardItemProps { feature: Feature; shouldUseLightText: boolean; defaultButtonVariant: CTAButtonVariant; cardClassName?: string; cardTitleClassName?: string; subtitleClassName?: string; categoryClassName?: string; valueClassName?: string; footerClassName?: string; cardButtonClassName?: string; cardButtonTextClassName?: string; } const FeatureCardItem = ({ feature, shouldUseLightText, defaultButtonVariant, cardClassName = "", cardTitleClassName = "", subtitleClassName = "", categoryClassName = "", valueClassName = "", footerClassName = "", cardButtonClassName = "", cardButtonTextClassName = "", }: FeatureCardItemProps) => { return (
{feature.subtitle}