feat: add first version of workbench, increase token limit, improve system prompt
This commit is contained in:
21
packages/bolt/app/components/workbench/EditorPanel.tsx
Normal file
21
packages/bolt/app/components/workbench/EditorPanel.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { useStore } from '@nanostores/react';
|
||||
import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels';
|
||||
import { themeStore } from '../../lib/stores/theme';
|
||||
import CodeMirrorEditor from '../editor/codemirror/CodeMirrorEditor';
|
||||
import { FileTreePanel } from './FileTreePanel';
|
||||
|
||||
export function EditorPanel() {
|
||||
const theme = useStore(themeStore);
|
||||
|
||||
return (
|
||||
<PanelGroup direction="horizontal">
|
||||
<Panel defaultSize={30} minSize={20} collapsible={false}>
|
||||
<FileTreePanel />
|
||||
</Panel>
|
||||
<PanelResizeHandle />
|
||||
<Panel defaultSize={70} minSize={20}>
|
||||
<CodeMirrorEditor theme={theme} settings={{ tabSize: 2 }} />
|
||||
</Panel>
|
||||
</PanelGroup>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user