import React, { Component } from 'react';
import PropTypes from 'prop-types';

import Editor from '../Editor/Editor';

class TestSpecEditor extends Component {
  render() {
    const { code, onAnyCode  } = this.props;
    return (
      <div>
        <Editor 
          showLints
          onAnyCode={onAnyCode}
          code={code}
        />
      </div>
    );
  }
}

TestSpecEditor.propTypes = {
  code: PropTypes.string
};

TestSpecEditor.defaultProps = {
  code: '',
};

export default TestSpecEditor;
