python-editor-split.tsx 918 B

123456789101112131415161718192021222324252627
  1. import { Panel, PanelGroup } from 'react-resizable-panels'
  2. import { VerticalResizeHandle } from '@/features/ide-react/components/resize/vertical-resize-handle'
  3. import PythonOutputPane from '@/features/ide-react/components/editor/python/python-output-pane'
  4. import SourceEditor from '@/features/source-editor/components/source-editor'
  5. export const PythonEditorSplit = () => {
  6. return (
  7. <PanelGroup
  8. autoSaveId="ide-redesign-editor-python-output"
  9. direction="vertical"
  10. className="ide-redesign-python-editor-split"
  11. >
  12. <Panel id="ide-redesign-panel-source-editor-content" order={1}>
  13. <SourceEditor />
  14. </Panel>
  15. <VerticalResizeHandle id="ide-redesign-editor-python-output" />
  16. <Panel
  17. id="ide-redesign-panel-python-output"
  18. order={2}
  19. defaultSize={35}
  20. minSize={10}
  21. >
  22. <PythonOutputPane />
  23. </Panel>
  24. </PanelGroup>
  25. )
  26. }