"use client"; import { useState, useEffect } from "react"; import { Star } from "lucide-react"; import TextAnimation from "@/components/text/TextAnimation"; import AvatarGroup from "@/components/shared/AvatarGroup"; import type { Avatar } from "@/components/shared/AvatarGroup"; import { cls } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { InvertedBackground } from "@/providers/themeProvider/config/constants"; interface TestimonialCardFifteenProps { testimonial: string; rating: number; author: string; avatars: Avatar[]; useInvertedBackground: InvertedBackground; ariaLabel?: string; className?: string; containerClassName?: string; ratingClassName?: string; starClassName?: string; testimonialClassName?: string; avatarGroupClassName?: string; avatarClassName?: string; avatarImageClassName?: string; } const TestimonialCardFifteen = ({ testimonial, rating, author, avatars, useInvertedBackground, ariaLabel = "Testimonial section", className = "", containerClassName = "", ratingClassName = "", starClassName = "", testimonialClassName = "", avatarGroupClassName = "", avatarClassName = "", avatarImageClassName = "", }: TestimonialCardFifteenProps) => { const theme = useTheme(); const [isMobile, setIsMobile] = useState(false); useEffect(() => { const checkMobile = () => setIsMobile(window.innerWidth < 768); checkMobile(); window.addEventListener("resize", checkMobile); return () => window.removeEventListener("resize", checkMobile); }, []); return (
{Array.from({ length: 5 }).map((_, index) => ( ))}

{author}

); }; TestimonialCardFifteen.displayName = "TestimonialCardFifteen"; export default TestimonialCardFifteen;