"use client" import { motion } from "framer-motion" import { Star } from "lucide-react" import { useEffect, useState } from "react" const testimonials = [ { name: "Sarah Chen", role: "Student", content: "I earn $200-300 per week doing tasks in my spare time. The AI verification is super fast!", rating: 5, avatar: "SC", }, { name: "Marcus Johnson", role: "Freelancer", content: "Finally a platform where I get paid instantly. No more waiting for payments. Love it!", rating: 5, avatar: "MJ", }, { name: "Elena Rodriguez", role: "Remote Worker", content: "The variety of tasks keeps things interesting. I've earned over $2000 in 3 months.", rating: 5, avatar: "ER", }, { name: "James Park", role: "Side Hustler", content: "Best platform I've used. Transparent, fair, and the Celo integration is seamless.", rating: 5, avatar: "JP", }, { name: "Sarah Chen", role: "Student", content: "I earn $200-300 per week doing tasks in my spare time. The AI verification is super fast!", rating: 5, avatar: "SC", }, { name: "Marcus Johnson", role: "Freelancer", content: "Finally a platform where I get paid instantly. No more waiting for payments. Love it!", rating: 5, avatar: "MJ", }, { name: "Elena Rodriguez", role: "Remote Worker", content: "The variety of tasks keeps things interesting. I've earned over $2000 in 3 months.", rating: 5, avatar: "ER", }, { name: "James Park", role: "Side Hustler", content: "Best platform I've used. Transparent, fair, and the Celo integration is seamless.", rating: 5, avatar: "JP", }, { name: "Sarah Chen", role: "Student", content: "I earn $200-300 per week doing tasks in my spare time. The AI verification is super fast!", rating: 5, avatar: "SC", }, { name: "Marcus Johnson", role: "Freelancer", content: "Finally a platform where I get paid instantly. No more waiting for payments. Love it!", rating: 5, avatar: "MJ", }, { name: "Elena Rodriguez", role: "Remote Worker", content: "The variety of tasks keeps things interesting. I've earned over $2000 in 3 months.", rating: 5, avatar: "ER", }, { name: "James Park", role: "Side Hustler", content: "Best platform I've used. Transparent, fair, and the Celo integration is seamless.", rating: 5, avatar: "JP", }, { name: "Sarah Chen", role: "Student", content: "I earn $200-300 per week doing tasks in my spare time. The AI verification is super fast!", rating: 5, avatar: "SC", }, { name: "Marcus Johnson", role: "Freelancer", content: "Finally a platform where I get paid instantly. No more waiting for payments. Love it!", rating: 5, avatar: "MJ", }, { name: "Elena Rodriguez", role: "Remote Worker", content: "The variety of tasks keeps things interesting. I've earned over $2000 in 3 months.", rating: 5, avatar: "ER", }, { name: "James Park", role: "Side Hustler", content: "Best platform I've used. Transparent, fair, and the Celo integration is seamless.", rating: 5, avatar: "JP", }, { name: "Sarah Chen", role: "Student", content: "I earn $200-300 per week doing tasks in my spare time. The AI verification is super fast!", rating: 5, avatar: "SC", }, { name: "Marcus Johnson", role: "Freelancer", content: "Finally a platform where I get paid instantly. No more waiting for payments. Love it!", rating: 5, avatar: "MJ", }, { name: "Elena Rodriguez", role: "Remote Worker", content: "The variety of tasks keeps things interesting. I've earned over $2000 in 3 months.", rating: 5, avatar: "ER", }, { name: "James Park", role: "Side Hustler", content: "Best platform I've used. Transparent, fair, and the Celo integration is seamless.", rating: 5, avatar: "JP", }, { name: "Sarah Chen", role: "Student", content: "I earn $200-300 per week doing tasks in my spare time. The AI verification is super fast!", rating: 5, avatar: "SC", }, { name: "Marcus Johnson", role: "Freelancer", content: "Finally a platform where I get paid instantly. No more waiting for payments. Love it!", rating: 5, avatar: "MJ", }, { name: "Elena Rodriguez", role: "Remote Worker", content: "The variety of tasks keeps things interesting. I've earned over $2000 in 3 months.", rating: 5, avatar: "ER", }, { name: "James Park", role: "Side Hustler", content: "Best platform I've used. Transparent, fair, and the Celo integration is seamless.", rating: 5, avatar: "JP", }, ] export function Testimonials() { const [currentIndex, setCurrentIndex] = useState(0) useEffect(() => { const interval = setInterval(() => { setCurrentIndex((prev) => (prev + 1) % testimonials.length) }, 5000) return () => clearInterval(interval) }, []) return (

Loved by workers worldwide

Join thousands earning on D.M.T.P

{testimonials.map((testimonial, index) => (
{testimonial.avatar}

{testimonial.name}

{testimonial.role}

{Array.from({ length: testimonial.rating }).map((_, i) => ( ))}

{testimonial.content}

))}
) }