import { TestimonialCarousel, type Testimonial } from '@/Components/marketing/TestimonialCarousel';

interface TestimonialsSectionProps {
  testimonials: Testimonial[];
  isStatic?: boolean;
}

export function TestimonialsSection({ testimonials, isStatic = false }: TestimonialsSectionProps) {
  if (testimonials.length === 0) {
    return null;
  }

  return (
    <section className="container border-t py-24" aria-labelledby="testimonials-heading">
      <div className="mx-auto max-w-5xl">
        <div className="mb-12 text-center">
          <h2 id="testimonials-heading" className="mb-4 text-3xl font-bold tracking-tight">
            What SEO Professionals Say
          </h2>
          <p className="text-lg text-muted-foreground">
            {isStatic
              ? 'Trusted by SEO professionals and content teams.'
              : 'Real feedback from SEO professionals and content publishers.'}
          </p>
        </div>
        <TestimonialCarousel testimonials={testimonials} />
      </div>
    </section>
  );
}
