'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _Editor = require('../Editor/Editor');

var _Editor2 = _interopRequireDefault(_Editor);

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

var TestSpecEditor = function TestSpecEditor(_ref) {
  var code = _ref.code,
      onAnyCode = _ref.onAnyCode;
  return _react2.default.createElement(
    'div',
    null,
    _react2.default.createElement(_Editor2.default, {
      onAnyCode: onAnyCode,
      code: code
    })
  );
};

TestSpecEditor.propTypes = {
  code: _propTypes2.default.string,
  onAnyCode: _propTypes2.default.func.isRequired
};

TestSpecEditor.defaultProps = {
  code: ''
};

exports.default = TestSpecEditor;