"use client"; import Image from "next/image"; import CardList from "@/components/cardStack/CardList"; 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, Elevate Your Brand with Expert Copywriting and Content EnhancementSegment } from "@/components/cardStack/types"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; interface TestimonialCard { id: string; companyName: string; companyLogo?: string; companyLogoAlt?: string; quote: string; author: string; buttons?: ButtonConfig[]; } interface TestimonialCardSevenProps { testimonials: TestimonialCard[]; animationType: CardAnimationType; 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; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementClassName?: string; textBoxDescriptionClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; titleImageWrapperClassName?: string; titleImageClassName?: string; cardContentClassName?: string; companyLogoClassName?: string; companyNameClassName?: string; quoteClassName?: string; authorClassName?: string; testimonialButtonClassName?: string; testimonialButtonTextClassName?: string; } const TestimonialCardSeven = ({ testimonials, animationType, title, titleSegments, description, tag, tagIcon, buttons, textboxLayout, useInvertedBackground, ariaLabel = "Testimonial section", className = "", containerClassName = "", cardClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementClassName = "", textBoxDescriptionClassName = "", textBoxClassName = "", textBoxTagClassName = "", textBoxButtonContainerClassName = "", textBoxButtonClassName = "", textBoxButtonTextClassName = "", titleImageWrapperClassName = "", titleImageClassName = "", cardContentClassName = "", companyLogoClassName = "", companyNameClassName = "", quoteClassName = "", authorClassName = "", testimonialButtonClassName = "", testimonialButtonTextClassName = "", }: TestimonialCardSevenProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); return ( {testimonials.map((testimonial) => (
{testimonial.companyLogo ? ( {testimonial.companyLogoAlt ) : (

{testimonial.companyName}

)}
{testimonial.quote}

{testimonial.author}

{testimonial.buttons && testimonial.buttons.length > 0 && (
{testimonial.buttons.slice(0, 2).map((button, index) => (
)}
))} ); }; TestimonialCardSeven.displayName = "TestimonialCardSeven"; export default TestimonialCardSeven;