import * as React from 'react'; import { Spinner } from '@fluentui/react'; import MonacoEditor from 'react-monaco-editor'; interface MonacoEditorProps { content: string; loading: boolean; height: number; } class MonacoHTML extends React.Component { constructor(props: MonacoEditorProps) { super(props); } render(): React.ReactNode { const { content, loading, height } = this.props; return ( {loading ? ( ) : ( )} ); } } export default MonacoHTML;