2025-05-06 11:38:50 +00:00
|
|
|
import { Suspense } from "react";
|
|
|
|
import {
|
|
|
|
SolutionContent,
|
|
|
|
SolutionContentSkeleton,
|
|
|
|
} from "@/features/problems/solution/components/content";
|
|
|
|
|
|
|
|
interface SolutionPanelProps {
|
2025-05-07 06:47:20 +00:00
|
|
|
problemId: string;
|
2025-05-06 11:38:50 +00:00
|
|
|
}
|
|
|
|
|
2025-05-07 06:47:20 +00:00
|
|
|
const SolutionPanel = ({ problemId }: SolutionPanelProps) => {
|
2025-05-06 11:38:50 +00:00
|
|
|
return (
|
|
|
|
<div className="h-full flex flex-col border border-t-0 border-muted rounded-b-3xl bg-background overflow-hidden">
|
|
|
|
<div className="relative flex-1">
|
|
|
|
<div className="absolute h-full w-full">
|
|
|
|
<Suspense fallback={<SolutionContentSkeleton />}>
|
2025-05-07 06:47:20 +00:00
|
|
|
<SolutionContent problemId={problemId} />
|
2025-05-06 11:38:50 +00:00
|
|
|
</Suspense>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export { SolutionPanel };
|