import React from 'react';
import { prisma } from '@/app/lib/prisma';
import UserManager from './UserManager';

export const dynamic = 'force-dynamic';

export default async function AdminUsersPage() {
  const users = await prisma.user.findMany({
    orderBy: { createdAt: 'desc' }
  });

  return <UserManager users={users} />;
}
