import { motion, AnimatePresence } from "framer-motion"; import { useEffect, useState } from "react"; import AnimatedSection from "./Animated"; import { home } from "@/services/Constants"; import { Quote, Star } from "lucide-react"; const Testimonials = () => { const [currentIndex, setCurrentIndex] = useState(0); useEffect(() => { const timer = setInterval(() => { setCurrentIndex((prev) => (prev + 1) % home.testimonials.length); }, 5000); return () => clearInterval(timer); }, []); const testimonial = home.testimonials[currentIndex]; return (
TESTIMONIALS

Loved by{" "} Our Clients

See what our customers have to say about their experience

"{testimonial.content}"

{testimonial.image}

{testimonial.name}

{testimonial.role}

{testimonial.company}

{[...Array(testimonial.rating)].map((_, i) => ( ))}
{/* Dots */}
{home.testimonials.map((_, index) => (
); }; export default Testimonials;