import prisma from "@/lib/prisma"; import { notFound } from "next/navigation"; import MdxPreview from "@/components/mdx-preview"; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import ProblemSolutionFooter from "@/components/features/playground/problem/solution/footer"; interface SolutionsPageProps { params: Promise<{ id: string }>; } export default async function SolutionsPage({ params }: SolutionsPageProps) { const { id } = await params; if (!id) { return notFound(); } const problem = await prisma.problem.findUnique({ where: { id }, select: { title: true, solution: true, }, }); if (!problem) { return notFound(); } return (
); }