import { prisma } from '@/lib/prisma';
import ParlemenProfilTable from '@/components/admin/parlemen-profil-table';

export const dynamic = 'force-dynamic';
export const revalidate = 0;

export default async function AdminParlemenProfilPage() {
    const anggota = await prisma.anggotaParlemen.findMany({
        orderBy: { createdAt: 'desc' },
    });

    return (
        <div className="space-y-6">
            <ParlemenProfilTable initialData={anggota || []} />
        </div>
    );
}
