import { prisma } from '@/lib/prisma';
import RangersTalkTable from '@/components/admin/rangers-talk-table';

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

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

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