import { prisma } from '@/lib/prisma';
import ProdukMumasTable from '@/components/admin/produk-mumas-table';

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

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

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