"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _react = require("react");
var _elementReact = require("element-react");
var _FormUpload = _interopRequireDefault(require("../../../../../components/XtForm/FormUpload"));
var _indexModule = _interopRequireDefault(require("./index.module.scss"));
function EditorItem(props) {
  // eslint-disable-next-line react/prop-types
  var option = props.option;
  var _useState = (0, _react.useState)(''),
    value = _useState[0],
    setValue = _useState[1];
  var onChange = function onChange(e) {
    Object.assign(option, {
      score: e
    });
    setValue(e);
  };
  return /*#__PURE__*/React.createElement("div", {
    className: _indexModule["default"]['editor-item-container']
  }, /*#__PURE__*/React.createElement("div", {
    className: _indexModule["default"]['editor-item-block']
  }, /*#__PURE__*/React.createElement("span", null, "\u6DFB\u52A0\u914D\u56FE\uFF1A"), /*#__PURE__*/React.createElement(_FormUpload["default"], {
    option: option,
    className: _indexModule["default"]['editor-item-upload']
  })), /*#__PURE__*/React.createElement("div", {
    className: _indexModule["default"]['editor-item-block']
  }, /*#__PURE__*/React.createElement("span", null, "\u8BBE\u7F6E\u5206\u503C\uFF1A"), /*#__PURE__*/React.createElement("div", {
    className: _indexModule["default"]['editor-item-input']
  }, /*#__PURE__*/React.createElement(_elementReact.Input, {
    value: value,
    onChange: onChange
  }), /*#__PURE__*/React.createElement("span", null, "\u5206"))));
}
var _default = EditorItem;
exports["default"] = _default;