Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @flow
import React from "react";
import CodeMirrorWrapper from "@nteract/editor/lib/wrapper";
type Props = {
children?: React$Element
};
const EditorView = (props: Props): React$Element => (
<div>{props.children}</div>
);
export default CodeMirrorWrapper(EditorView, { readOnly: true });