mirror of
https://github.com/massbug/judge4c.git
synced 2026-06-01 08:08:53 +00:00
33 lines
864 B
TypeScript
33 lines
864 B
TypeScript
import { Suspense } from "react";
|
|
import {
|
|
DetailContent,
|
|
DetailContentSkeleton,
|
|
} from "@/features/problems/detail/components/content";
|
|
import { PanelLayout } from "@/features/problems/layouts/panel-layout";
|
|
import { DetailHeader } from "@/features/problems/detail/components/header";
|
|
|
|
interface DetailPanelProps {
|
|
submissionId: string | undefined;
|
|
}
|
|
|
|
export const DetailPanel = ({ submissionId }: DetailPanelProps) => {
|
|
if (!submissionId) {
|
|
return (
|
|
<PanelLayout isScroll={false}>
|
|
<DetailContentSkeleton />
|
|
</PanelLayout>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<PanelLayout isScroll={false}>
|
|
<div className="flex h-full min-h-0 flex-col">
|
|
<DetailHeader />
|
|
<Suspense fallback={<DetailContentSkeleton />}>
|
|
<DetailContent submissionId={submissionId} />
|
|
</Suspense>
|
|
</div>
|
|
</PanelLayout>
|
|
);
|
|
};
|