diff --git a/src/components/sections/feature/FeatureCardTwentyThree.tsx b/src/components/sections/feature/FeatureCardTwentyThree.tsx index 81976c2..0fd43d2 100644 --- a/src/components/sections/feature/FeatureCardTwentyThree.tsx +++ b/src/components/sections/feature/FeatureCardTwentyThree.tsx @@ -1,28 +1,241 @@ -import React from "react"; -import { CardStack } from "@/components/cardStack/CardStack"; +"use client"; + +import { memo } from "react"; +import { ArrowRight } from "lucide-react"; +import CardStack from "@/components/cardStack/CardStack"; +import MediaContent from "@/components/shared/MediaContent"; +import Tag from "@/components/shared/Tag"; +import { cls, shouldUseInvertedText } from "@/lib/utils"; +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"; + +type FeatureItem = { + id: string; + title: string; + tags: string[]; + imageSrc?: string; + videoSrc?: string; + imageAlt?: string; + videoAriaLabel?: string; + onFeatureClick?: () => void; +}; interface FeatureCardTwentyThreeProps { - features?: any[]; - title?: string; - description?: string; - animationType?: string; - textboxLayout?: string; - useInvertedBackground?: boolean; + features: FeatureItem[]; + 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; + itemClassName?: string; + mediaWrapperClassName?: string; + mediaClassName?: string; + cardClassName?: string; + cardTitleClassName?: string; + tagsContainerClassName?: string; + tagClassName?: string; + arrowClassName?: string; + textBoxTitleClassName?: string; + textBoxTitleImageWrapperClassName?: string; + textBoxTitleImageClassName?: string; + textBoxDescriptionClassName?: string; + gridClassName?: string; + carouselClassName?: string; + controlsClassName?: string; + textBoxClassName?: string; + textBoxTagClassName?: string; + textBoxButtonContainerClassName?: string; + textBoxButtonClassName?: string; + textBoxButtonTextClassName?: string; } -export default function FeatureCardTwentyThree({ - features = [], - title = "Features", description = "Our features", animationType = "slide-up", textboxLayout = "default", useInvertedBackground = false, -}: FeatureCardTwentyThreeProps) { - const items = features.map((feature) => ({ - id: feature.id, - label: feature.title, - detail: feature.description, - })); - - return ( -