"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DocSchema = void 0;

var _react = _interopRequireDefault(require("react"));

var _codeEditor = require("@looker/code-editor");

var _runIt = require("@looker/run-it");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var DocSchema = _ref => {
  var {
    object
  } = _ref;
  if (!object) return _react.default.createElement(_react.default.Fragment, null);
  var json = JSON.stringify(object, null, 2);
  return _react.default.createElement(_runIt.CollapserCard, {
    heading: "Original Schema",
    defaultOpen: false,
    id: "original schema"
  }, _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_codeEditor.CodeDisplay, {
    language: "json",
    code: json
  })));
};

exports.DocSchema = DocSchema;
//# sourceMappingURL=DocSchema.js.map