"use strict";

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

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

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

var _WorkflowStateIcon = _interopRequireDefault(require("./WorkflowStateIcon"));

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

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

const {
  pathPropType
} = _cspaceInput.helpers.pathHelpers;
const propTypes = {
  /* eslint-disable react/no-unused-prop-types */
  name: _propTypes.default.string,
  parentPath: pathPropType,
  subpath: pathPropType,
  readOnly: _propTypes.default.bool,

  /* eslint-enable react/no-unused-prop-types */
  value: _propTypes.default.string
};

function WorkflowStateInput(props) {
  const {
    value
  } = props;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: _WorkflowStateInput.default.common
  }, /*#__PURE__*/_react.default.createElement(_WorkflowStateIcon.default, {
    value: value
  }));
}

WorkflowStateInput.propTypes = propTypes;