import React, { Suspense, forwardRef } from 'react'; import type { CodeEditorProps } from './code-editor-view'; import type { ReactCodeMirrorRef } from '@uiw/react-codemirror'; export type { CodeEditorProps }; // Imported asynchronously to avoid including CodeMirror in the main bundle const CodeEditorView = React.lazy(() => import('./code-editor-view')); const CodeEditor = forwardRef(function CodeEditor(props, ref) { return ( ); }); export default CodeEditor;