import { prisma } from '@/lib/prisma';
import LaporanKeuanganTable from '@/components/admin/laporan-keuangan-table';

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

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

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