diff --git a/src/components/sections/testimonial/TestimonialCardSixteen.tsx b/src/components/sections/testimonial/TestimonialCardSixteen.tsx index 5ac4e20..9e177c7 100644 --- a/src/components/sections/testimonial/TestimonialCardSixteen.tsx +++ b/src/components/sections/testimonial/TestimonialCardSixteen.tsx @@ -1,240 +1,28 @@ -"use client"; - -import { memo } from "react"; -import CardStack from "@/components/cardStack/CardStack"; -import MediaContent from "@/components/shared/MediaContent"; -import { cls } from "@/lib/utils"; -import { Star } from "lucide-react"; -import type { LucideIcon } from "lucide-react"; -import type { ButtonConfig, ButtonAnimationType, CardAnimationTypeWith3D, TitleSegment, TextboxLayout, InvertedBackground } from "@/components/cardStack/types"; - -type Testimonial = { - id: string; - name: string; - role: string; - company: string; - rating: number; - imageSrc?: string; - videoSrc?: string; - imageAlt?: string; - videoAriaLabel?: string; -}; - -type KpiItem = { - value: string; - label: string; -}; +import React from "react"; +import { CardStack } from "@/components/cardStack/CardStack"; interface TestimonialCardSixteenProps { - testimonials: Testimonial[]; - kpiItems: [KpiItem, KpiItem, KpiItem]; - carouselMode?: "auto" | "buttons"; - uniformGridCustomHeightClasses?: string; - animationType: CardAnimationTypeWith3D; - title: string; - titleSegments?: TitleSegment[]; - description: string; - tag?: string; - tagIcon?: LucideIcon; - tagAnimation?: ButtonAnimationType; - buttons?: ButtonConfig[]; - buttonAnimation?: ButtonAnimationType; - textboxLayout: TextboxLayout; - useInvertedBackground: InvertedBackground; - ariaLabel?: string; - className?: string; - containerClassName?: string; - cardClassName?: string; - textBoxTitleClassName?: string; - textBoxTitleImageWrapperClassName?: string; - textBoxTitleImageClassName?: string; - textBoxDescriptionClassName?: string; - imageClassName?: string; - overlayClassName?: string; - ratingClassName?: string; - nameClassName?: string; - roleClassName?: string; - companyClassName?: string; - gridClassName?: string; - carouselClassName?: string; - controlsClassName?: string; - textBoxClassName?: string; - textBoxTagClassName?: string; - textBoxButtonContainerClassName?: string; - textBoxButtonClassName?: string; - textBoxButtonTextClassName?: string; + testimonials?: any[]; + title?: string; + description?: string; + animationType?: string; + textboxLayout?: string; + useInvertedBackground?: boolean; } -interface TestimonialCardProps { - testimonial: Testimonial; - cardClassName?: string; - imageClassName?: string; - overlayClassName?: string; - ratingClassName?: string; - nameClassName?: string; - roleClassName?: string; - companyClassName?: string; +export default function TestimonialCardSixteen({ + testimonials = [], + title = "Testimonials", description = "What customers say", animationType = "slide-up", textboxLayout = "default", useInvertedBackground = false, +}: TestimonialCardSixteenProps) { + const items = testimonials.map((testimonial) => ({ + id: testimonial.id, + label: testimonial.name, + detail: testimonial.company, + })); + + return ( +
- {testimonial.role} -
-- {testimonial.company} -
-{item.label}
-