mirror of
https://github.com/massbug/judge4c.git
synced 2025-08-23 10:03:33 +00:00
20 lines
455 B
TypeScript
20 lines
455 B
TypeScript
|
import prisma from "@/lib/prisma";
|
||
|
import { ProblemsetTable } from "@/components/features/dashboard/admin/problemset/table";
|
||
|
|
||
|
export default async function AdminDashboardProblemsetPage() {
|
||
|
const problems = await prisma.problem.findMany({
|
||
|
select: {
|
||
|
id: true,
|
||
|
displayId: true,
|
||
|
title: true,
|
||
|
difficulty: true,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
return (
|
||
|
<div className="h-full px-4">
|
||
|
<ProblemsetTable data={problems} />
|
||
|
</div>
|
||
|
);
|
||
|
}
|