diff --git a/src/components/sections/testimonial/TestimonialTrustCard.tsx b/src/components/sections/testimonial/TestimonialTrustCard.tsx index c00f1b0..e69de29 100644 --- a/src/components/sections/testimonial/TestimonialTrustCard.tsx +++ b/src/components/sections/testimonial/TestimonialTrustCard.tsx @@ -1,74 +0,0 @@ -import { Star } from "lucide-react"; -import TextAnimation from "@/components/ui/TextAnimation"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import ScrollReveal from "@/components/ui/ScrollReveal"; -import { cls } from "@/lib/utils"; - -type Avatar = { - name: string; -} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); - -const TestimonialTrustCard = ({ - quote, - rating, - author, - avatars, -}: { - quote: string; - rating: number; - author: string; - avatars: Avatar[]; -}) => { - const visibleAvatars = avatars.slice(0, 6); - const remainingCount = avatars.length - visibleAvatars.length; - - return ( -
-
- - {Array.from({ length: 5 }).map((_, index) => ( - - ))} - - - - - -

{author}

-
- - - {visibleAvatars.map((avatar, index) => ( -
0 && "-ml-5")} - style={{ zIndex: visibleAvatars.length - index }} - > - -
- ))} - {remainingCount > 0 && ( -
- +{remainingCount} -
- )} -
-
-
- ); -}; - -export default TestimonialTrustCard;