import "antd/es/drawer/style";
import _Drawer from "antd/es/drawer";
import React from 'react';
import CodeMirror from '@uiw/react-codemirror';

var CodeMirrorDrawer = function CodeMirrorDrawer(_ref) {
  var visiable = _ref.visiable,
      _ref$data = _ref.data,
      data = _ref$data === void 0 ? {} : _ref$data,
      onClose = _ref.onClose;
  return /*#__PURE__*/React.createElement(_Drawer, {
    visible: visiable,
    width: 500,
    onClose: onClose
  }, /*#__PURE__*/React.createElement(CodeMirror, {
    value: JSON.stringify(data),
    options: {
      mode: 'json-ld',
      readonly: true
    }
  }));
};

export default CodeMirrorDrawer;