• Renders the given code within a Monaco Editor

    Parameters

    • props: {
          content: string;
          contextMenuCallback: ((e) => void);
          editorProvider: MonacoEditorProvider;
          language?: string;
          untitledResourceResolver: UntitledResourceResolver;
      }
      • content: string
      • contextMenuCallback: ((e) => void)
          • (e): void
          • Parameters

            • e: IMouseEvent

            Returns void

      • editorProvider: MonacoEditorProvider
      • Optional language?: string
      • untitledResourceResolver: UntitledResourceResolver

    Returns Element