python-editor-split.tsx 1.1 KB

123456789101112131415161718192021222324252627282930
  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. import { PythonExecutionProvider } from '@/features/ide-react/context/python-execution-context'
  6. export const PythonEditorSplit = () => {
  7. return (
  8. <PythonExecutionProvider>
  9. <PanelGroup
  10. autoSaveId="ide-redesign-editor-python-output"
  11. direction="vertical"
  12. className="ide-redesign-python-editor-split"
  13. >
  14. <Panel id="ide-redesign-panel-source-editor-content" order={1}>
  15. <SourceEditor />
  16. </Panel>
  17. <VerticalResizeHandle id="ide-redesign-editor-python-output" />
  18. <Panel
  19. id="ide-redesign-panel-python-output"
  20. order={2}
  21. defaultSize={35}
  22. minSize={10}
  23. >
  24. <PythonOutputPane />
  25. </Panel>
  26. </PanelGroup>
  27. </PythonExecutionProvider>
  28. )
  29. }