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

Loved by{" "} Hiring Teams

See what our customers have to say about their experience

{home.testimonials.map((testimonial, index) => (

"{testimonial.content}"

{testimonial.image}

{testimonial.name}

{testimonial.role}

{testimonial.company}

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