'use strict';

exports.__esModule = true;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

var _propTypes2 = _interopRequireDefault(_propTypes);

require('./style.css');

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

var PublishState = function PublishState(publishState) {
  return _react2.default.createElement(
    'div',
    { className: 'ma__publish-state' },
    publishState.text
  );
};

PublishState.propTypes = process.env.NODE_ENV !== "production" ? {
  /** The text displayed. */
  text: _propTypes2.default.string
} : {};

PublishState.defaultProps = {
  text: 'Draft'
};

exports.default = PublishState;
module.exports = exports['default'];