import { ComplexLoader , createComplexLoader , Loader } from '@cloudbeaver/core-blocks' ; import type { ICodeEditorProps } from './ICodeEditorProps' ; const loader = createComplexLoader ( async function loader ( ) { const { CodeEditor } = await import ( './CodeEditor' ) ; return { CodeEditor } ; } ) ; export const CodeEditorLoader = function CodeEditorLoader ( props ) { return ( < ComplexLoader loader = { loader } placeholder = { < Loader / > } > { ( { CodeEditor } ) => < CodeEditor { ... props } / > } < /ComplexLoader>); } ;