// @ts-nocheck import React, { useEffect, useState } from 'react'; import EditorComp, { SingleEditorIProps, SingleEditorRefType } from './Editor'; import './index.less'; export { SingleEditorIProps, SingleEditorRefType } from './Editor'; export const SingleEditor = React.forwardRef< SingleEditorRefType, SingleEditorIProps >((props, ref) => { const [, setCount] = useState(0); useEffect(() => { const interval = setInterval(() => { setCount((pre) => pre + 1); if (window.monaco) { clearInterval(interval); } }, 100); }, []); if (window.monaco) { return ; } return (
); }); SingleEditor.displayName = 'SingleEditor'; export default SingleEditor;