"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _antd = require("antd");
var _RequiredLabel = _interopRequireDefault(require("../RequiredLabel"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = function _default(props) {
  var title = props.title,
    options = props.options,
    value = props.value,
    onChange = props.onChange,
    mode = props.mode,
    _props$width = props.width,
    width = _props$width === void 0 ? 140 : _props$width;
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_RequiredLabel["default"], {
    label: title,
    type: "field"
  }), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
    mode: mode,
    value: value,
    style: {
      width: width
    },
    onChange: onChange,
    options: options
  }));
};
exports["default"] = _default;
//# sourceMappingURL=index.js.map
