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