mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
Some checks failed
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
23 lines
836 B
TypeScript
23 lines
836 B
TypeScript
"use client";
|
|
|
|
import { useProblem } from "@/hooks/use-problem";
|
|
import MdxPreview from "@/components/mdx-preview";
|
|
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
|
|
import ProblemSolutionFooter from "@/components/features/playground/problem/solution/footer";
|
|
|
|
export default function ProblemSolutionPage() {
|
|
const { problem } = useProblem();
|
|
|
|
return (
|
|
<>
|
|
<div className="flex-1">
|
|
<ScrollArea className="[&>[data-radix-scroll-area-viewport]]:max-h-[calc(100vh-130px)] [&>[data-radix-scroll-area-viewport]>div:min-w-0 [&>[data-radix-scroll-area-viewport]>div]:!block">
|
|
<MdxPreview source={problem.solution} className="p-4 md:p-6" />
|
|
<ScrollBar orientation="horizontal" />
|
|
</ScrollArea>
|
|
</div>
|
|
<ProblemSolutionFooter title={problem.title} />
|
|
</>
|
|
);
|
|
}
|