mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-04 09:20:53 +00:00
- Add ScrollArea and ScrollBar components from ui/scroll-area - Introduce optional isScroll prop (defaults to true) to control scrolling - Maintain backward compatibility with existing usage
27 lines
716 B
TypeScript
27 lines
716 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 <DetailContentSkeleton />;
|
|
}
|
|
|
|
return (
|
|
<PanelLayout isScroll={false}>
|
|
<DetailHeader />
|
|
<Suspense fallback={<DetailContentSkeleton />}>
|
|
<DetailContent submissionId={submissionId} />
|
|
</Suspense>
|
|
</PanelLayout>
|
|
);
|
|
};
|