import { getAdmins } from "@/app/actions/admin";
import AdminsClient from "@/components/admin/AdminsClient";

// Vercel / Next.js için dinamik rendering (cache'lemeyi kapatmak için)
export const dynamic = "force-dynamic";

export default async function AdminsPage() {
  const result = await getAdmins();
  const admins = result.success && result.data ? result.data : [];

  return <AdminsClient initialAdmins={admins} />;
}
