'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

var _propTypes2 = _interopRequireDefault(_propTypes);

var _cspaceInput = require('cspace-input');

var _WorkflowStateIcon = require('./WorkflowStateIcon');

var _WorkflowStateIcon2 = _interopRequireDefault(_WorkflowStateIcon);

var _WorkflowStateInput = require('../../../styles/cspace-ui/WorkflowStateInput.css');

var _WorkflowStateInput2 = _interopRequireDefault(_WorkflowStateInput);

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

var pathPropType = _cspaceInput.helpers.pathHelpers.pathPropType;


var propTypes = {
  /* eslint-disable react/no-unused-prop-types */
  name: _propTypes2.default.string,
  parentPath: pathPropType,
  subpath: pathPropType,
  readOnly: _propTypes2.default.bool,
  /* eslint-enable react/no-unused-prop-types */
  value: _propTypes2.default.string
};

function WorkflowStateInput(props) {
  var value = props.value;


  return _react2.default.createElement(
    'div',
    { className: _WorkflowStateInput2.default.common },
    _react2.default.createElement(_WorkflowStateIcon2.default, { value: value })
  );
}

WorkflowStateInput.propTypes = propTypes;