2025-05-06 11:38:50 +00:00
|
|
|
import { Suspense } from "react";
|
|
|
|
import {
|
|
|
|
SolutionContent,
|
|
|
|
SolutionContentSkeleton,
|
|
|
|
} from "@/features/problems/solution/components/content";
|
2025-06-20 15:03:23 +00:00
|
|
|
import { PanelLayout } from "@/features/problems/layouts/panel-layout";
|
2025-05-06 11:38:50 +00:00
|
|
|
|
|
|
|
interface SolutionPanelProps {
|
2025-05-07 06:47:20 +00:00
|
|
|
problemId: string;
|
2025-05-06 11:38:50 +00:00
|
|
|
}
|
|
|
|
|
2025-05-13 07:36:07 +00:00
|
|
|
export const SolutionPanel = ({ problemId }: SolutionPanelProps) => {
|
2025-05-06 11:38:50 +00:00
|
|
|
return (
|
2025-06-20 15:03:23 +00:00
|
|
|
<PanelLayout>
|
|
|
|
<Suspense fallback={<SolutionContentSkeleton />}>
|
|
|
|
<SolutionContent problemId={problemId} />
|
|
|
|
</Suspense>
|
|
|
|
</PanelLayout>
|
2025-05-06 11:38:50 +00:00
|
|
|
);
|
|
|
|
};
|