import { observer } from 'mobx-react-lite'; import React, { useRef } from 'react'; import { useRootStore } from '../RootStore'; export const EditorArea = observer(() => { const { editorStore } = useRootStore(); const { CodeMirror } = editorStore.chunk || {}; const fallbackTextarea = useRef(null); if (!CodeMirror) { return (