mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: path
This commit is contained in:
25
src/components/Markdown/Editor.tsx
vendored
Normal file
25
src/components/Markdown/Editor.tsx
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import Editor from "@monaco-editor/react";
|
||||
import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels';
|
||||
|
||||
import './index.scss';
|
||||
|
||||
const MarkdownEditor = () => {
|
||||
return (
|
||||
<div>
|
||||
<PanelGroup direction="horizontal">
|
||||
<Panel>
|
||||
<Editor
|
||||
height="calc(100vh - 120px)"
|
||||
language="markdown"
|
||||
/>
|
||||
</Panel>
|
||||
<PanelResizeHandle className="resize-handle" />
|
||||
<Panel collapsible={true}>
|
||||
<div>1284</div>
|
||||
</Panel>
|
||||
</PanelGroup>
|
||||
</div>
|
||||
)
|
||||
};
|
||||
|
||||
export default MarkdownEditor;
|
||||
Reference in New Issue
Block a user