import prisma from "@/lib/prisma"; import { notFound } from "next/navigation"; import { MdxRenderer } from "@/components/content/mdx-renderer"; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; interface ProblemDescriptionPageProps { params: Promise<{ id: string }> } export default async function ProblemDescriptionPage({ params }: ProblemDescriptionPageProps) { const { id } = await params; const problem = await prisma.problem.findUnique({ where: { id: parseInt(id) }, select: { description: true, } }); if (!problem) { notFound(); } return ( ); }