"use client"; import CardStack from "@/components/cardStack/CardStack"; import FeatureBorderGlowItem from "./FeatureBorderGlowItem"; import { 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"; interface FeatureCard { icon: LucideIcon; title: string; description: string; } interface FeatureBorderGlowProps { features: FeatureCard[]; carouselMode?: "auto" | "buttons"; uniformGridCustomHeightClasses?: string; 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; iconContainerClassName?: string; iconClassName?: string; textBoxTitleClassName?: string; textBoxTitleImageWrapperClassName?: string; textBoxTitleImageClassName?: string; textBoxDescriptionClassName?: string; cardTitleClassName?: string; cardDescriptionClassName?: string; gridClassName?: string; carouselClassName?: string; controlsClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; } const FeatureBorderGlow = ({ features, carouselMode = "buttons", uniformGridCustomHeightClasses = "min-h-75 2xl:min-h-85", animationType, title, titleSegments, description, tag, tagIcon, buttons, textboxLayout, useInvertedBackground, ariaLabel = "Feature section", className = "", containerClassName = "", cardClassName = "", iconContainerClassName = "", iconClassName = "", textBoxTitleClassName = "", textBoxTitleImageWrapperClassName = "", textBoxTitleImageClassName = "", textBoxDescriptionClassName = "", cardTitleClassName = "", cardDescriptionClassName = "", gridClassName = "", carouselClassName = "", controlsClassName = "", textBoxClassName = "", textBoxTagClassName = "", textBoxButtonContainerClassName = "", textBoxButtonClassName = "", textBoxButtonTextClassName = "", }: FeatureBorderGlowProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText( useInvertedBackground, theme.cardStyle ); return ( {features.map((feature, index) => ( ))} ); }; FeatureBorderGlow.displayName = "FeatureBorderGlow"; export default FeatureBorderGlow;