"use client"; import React, { memo } from "react"; import TimelineHorizontalCardStack from "@/components/cardStack/layouts/timelines/TimelineHorizontalCardStack"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, TitleSegment } from "@/components/cardStack/types"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; type FeatureCard = { id: number; title: string; description: string; imageAlt?: string; videoAriaLabel?: string; } & ( | { imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never } ); interface FeatureCardEightProps { features: FeatureCard[]; title: string; titleSegments?: TitleSegment[]; description: string; tag?: string; tagIcon?: LucideIcon; buttons?: ButtonConfig[]; textboxLayout: TextboxLayout; useInvertedBackground: InvertedBackground; ariaLabel?: string; className?: string; containerClassName?: string; textBoxTitleClassName?: string; textBoxDescriptionClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; titleImageWrapperClassName?: string; titleImageClassName?: string; cardClassName?: string; progressBarClassName?: string; cardContentClassName?: string; stepNumberClassName?: string; cardTitleClassName?: string; cardDescriptionClassName?: string; mediaContainerClassName?: string; mediaClassName?: string; } const FeatureCardEight = ({ features, title, titleSegments, description, tag, tagIcon, buttons, textboxLayout, useInvertedBackground, ariaLabel = "Feature section", className = "", containerClassName = "", textBoxTitleClassName = "", textBoxDescriptionClassName = "", textBoxClassName = "", textBoxTagClassName = "", textBoxButtonContainerClassName = "", textBoxButtonClassName = "", textBoxButtonTextClassName = "", titleImageWrapperClassName = "", titleImageClassName = "", cardClassName = "", progressBarClassName = "", cardContentClassName = "", stepNumberClassName = "", cardTitleClassName = "", cardDescriptionClassName = "", mediaContainerClassName = "", mediaClassName = "", }: FeatureCardEightProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); const mediaItems = features.map((feature) => ({ imageSrc: feature.imageSrc, videoSrc: feature.videoSrc, imageAlt: feature.imageAlt || feature.title, videoAriaLabel: feature.videoAriaLabel || feature.title, })); return ( {features.map((feature) => (

{feature.id}

{feature.title}

{feature.description}

))}
); }; FeatureCardEight.displayName = "FeatureCardEight"; export default memo(FeatureCardEight);