import Image from 'next/image'; import testimonials from '@/data/testimonials.json'; import clsx from 'clsx'; import TestimonialsShare from './TestimonialsShare'; export default function Testimonials({ limit = 0 }) { let testimonialsList = testimonials; if (limit) { testimonialsList = testimonials.slice(0, limit); } return ( <>
{testimonialsList.map((column, id) => (
{column.map((testimonial, id2) => (
{testimonial.name}
{testimonial.name}
{testimonial.job}
{testimonial.description}
))}
))}
); }