"use client"; import { testimonials2 } from "@/data/testimonials"; import { Autoplay, Navigation } from "swiper/modules"; import { Swiper, SwiperSlide } from "swiper/react"; import Image from "next/image"; import AnimatedText from "@/components/common/AnimatedText"; export default function Testimonials() { const swiperOptions = { spaceBetween: 30, speed: 2000, loop: true, autoplay: { delay: 2000, disableOnInteraction: false, }, modules: [Autoplay, Navigation], navigation: { nextEl: ".snbp4", prevEl: ".snbn4", }, breakpoints: { 991: { slidesPerView: 2, }, 767: { slidesPerView: 1, }, 575: { slidesPerView: 1, }, 0: { slidesPerView: 1, }, }, }; return (
testimonial

{testimonials2.map((testimonial, i) => (
shape

{testimonial.text}

client

{testimonial.clientName}

{testimonial.clientRole}
{Array(5) .fill(0) .map((_, index) => ( ))}
logo
))}
); }