"use client"; import { memo } from "react"; import FullWidthCarousel from "@/components/cardStack/layouts/carousels/FullWidthCarousel"; import MediaContent from "@/components/shared/MediaContent"; import Tag from "@/components/shared/Tag"; import TestimonialAuthor from "@/components/shared/TestimonialAuthor"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, TitleSegment, TextboxLayout, InvertedBackground } from "@/components/cardStack/types"; import { Star } from "lucide-react"; type Testimonial = { id: string; name: string; date: string; title: string; quote: string; tag: string; avatarSrc: string; avatarAlt?: string; imageSrc?: string; videoSrc?: string; imageAlt?: string; videoAriaLabel?: string; }; interface TestimonialCardFiveProps { testimonials: Testimonial[]; title: string; titleSegments?: TitleSegment[]; description: string; tag?: string; tagIcon?: LucideIcon; buttons?: ButtonConfig[]; textboxLayout: TextboxLayout; useInvertedBackground: InvertedBackground; ariaLabel?: string; className?: string; containerClassName?: string; cardClassName?: string; textBoxTitleClassName?: string; textBoxTitleImageWrapperClassName?: string; textBoxTitleImageClassName?: string; textBoxDescriptionClassName?: string; cardTagClassName?: string; cardTitleClassName?: string; cardQuoteClassName?: string; cardAuthorClassName?: string; cardAvatarWrapperClassName?: string; cardAvatarClassName?: string; cardNameClassName?: string; cardDateClassName?: string; cardImageClassName?: string; carouselClassName?: string; dotsClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; } interface TestimonialCardProps { testimonial: Testimonial; useInvertedBackground: "noInvert" | "invertDefault"; cardClassName?: string; tagClassName?: string; titleClassName?: string; quoteClassName?: string; authorClassName?: string; avatarWrapperClassName?: string; avatarClassName?: string; nameClassName?: string; dateClassName?: string; imageClassName?: string; } const TestimonialCard = memo(({ testimonial, useInvertedBackground, cardClassName = "", tagClassName = "", titleClassName = "", quoteClassName = "", authorClassName = "", avatarWrapperClassName = "", avatarClassName = "", nameClassName = "", dateClassName = "", imageClassName = "", }: TestimonialCardProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); return (
{testimonial.quote}