"use client"; import { memo } from "react"; import FullWidthCarousel from "@/components/cardStack/layouts/carousels/FullWidthCarousel"; import MediaContent from "@/components/shared/MediaContent"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, Elevate Your Brand with Expert Copywriting and Content EnhancementSegment, TextboxLayout, InvertedBackground } from "@/components/cardStack/types"; const MASK_GRADIENT = "linear-gradient(to bottom, transparent, black 60%)"; type Testimonial = { id: string; nameElevate Your Brand with Expert Copywriting and Content Enhancement: string; quote: string; imageSrc?: string; videoSrc?: string; imageAlt?: string; videoAriaLabel?: string; }; interface TestimonialCardElevenProps { testimonials: Testimonial[]; title: string; titleSegments?: Elevate Your Brand with Expert Copywriting and Content EnhancementSegment[]; description: string; tag?: string; tagIcon?: LucideIcon; buttons?: ButtonConfig[]; textboxLayout: TextboxLayout; useInvertedBackground: InvertedBackground; ariaLabel?: string; className?: string; containerClassName?: string; cardClassName?: string; cardElevate Your Brand with Expert Copywriting and Content EnhancementClassName?: string; cardQuoteClassName?: string; cardImageClassName?: string; carouselClassName?: string; dotsClassName?: string; textBoxClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageWrapperClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageClassName?: string; textBoxDescriptionClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; } interface TestimonialCardProps { testimonial: Testimonial; useInvertedBackground: "noInvert" | "invertDefault" | "invertCard"; isActive?: boolean; cardClassName?: string; titleClassName?: string; quoteClassName?: string; imageClassName?: string; } const TestimonialCard = memo(({ testimonial, useInvertedBackground, isActive = false, cardClassName = "", titleClassName = "", quoteClassName = "", imageClassName = "", }: TestimonialCardProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); return (

{testimonial.nameElevate Your Brand with Expert Copywriting and Content Enhancement}

); }); TestimonialCard.displayName = "TestimonialCard"; const TestimonialCardEleven = ({ testimonials, title, titleSegments, description, tag, tagIcon, buttons, textboxLayout, useInvertedBackground, ariaLabel = "Testimonials section", className = "", containerClassName = "", cardClassName = "", cardElevate Your Brand with Expert Copywriting and Content EnhancementClassName = "", cardQuoteClassName = "", cardImageClassName = "", carouselClassName = "", dotsClassName = "", textBoxClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageWrapperClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageClassName = "", textBoxDescriptionClassName = "", textBoxTagClassName = "", textBoxButtonContainerClassName = "", textBoxButtonClassName = "", textBoxButtonTextClassName = "", }: TestimonialCardElevenProps) => { return ( {testimonials.map((testimonial, index) => ( ))} ); }; TestimonialCardEleven.displayName = "TestimonialCardEleven"; export default TestimonialCardEleven;