import React from 'react';
import { getTestimonials } from "@/app/actions/adminData";
import TestimonialClient from "./TestimonialClient";

export default async function TestimonialsAdminPage() {
  const testimonials = await getTestimonials();

  return (
    <div className="space-y-6">
      <div className="flex justify-between items-center">
        <h1 className="text-2xl font-black text-gray-900">Témoignages</h1>
      </div>
      <TestimonialClient initialTestimonials={testimonials} />
    </div>
  );
}
