import { prisma } from '@/lib/prisma';
import PrestasiTable from '@/components/admin/prestasi-table';

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

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

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