import React from 'react';
import PropTypes from 'prop-types';
import './style.css';

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

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

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

export default PublishState;