import Link from "next/link"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import prisma from "@/lib/prisma"; export default async function ProblemsetPage() { const problems = await prisma.problem.findMany({ where: { published: true }, }); return ( Id Title Difficulty {problems.map((problem) => ( {problem.id} {problem.title} {problem.difficulty} ))}
); }