monaco-editor-lsp-next/src/features/problems/bot/components/panel.tsx
cfngc4594 573007398e feat(panel-layout): add scrollable content support with isScroll prop
- 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
2025-06-21 12:45:39 +08:00

21 lines
502 B
TypeScript

import { Suspense } from "react";
import {
BotContent,
BotContentSkeleton,
} from "@/features/problems/bot/components/content";
import { PanelLayout } from "@/features/problems/layouts/panel-layout";
interface BotPanelProps {
problemId: string;
}
export const BotPanel = ({ problemId }: BotPanelProps) => {
return (
<PanelLayout isScroll={false}>
<Suspense fallback={<BotContentSkeleton />}>
<BotContent problemId={problemId} />
</Suspense>
</PanelLayout>
);
};