"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));

var React = _interopRequireWildcard(require("react"));

var _Upload = _interopRequireDefault(require("./Upload"));

// stick class comoponent to avoid React ref warning inside Form
// https://github.com/ant-design/ant-design/issues/18707
// eslint-disable-next-line react/prefer-stateless-function
var Dragger = /*#__PURE__*/function (_React$Component) {
  (0, _inherits2["default"])(Dragger, _React$Component);

  var _super = (0, _createSuper2["default"])(Dragger);

  function Dragger() {
    (0, _classCallCheck2["default"])(this, Dragger);
    return _super.apply(this, arguments);
  }

  (0, _createClass2["default"])(Dragger, [{
    key: "render",
    value: function render() {
      var props = this.props;
      return /*#__PURE__*/React.createElement(_Upload["default"], (0, _extends2["default"])({}, props, {
        type: "drag",
        style: (0, _extends2["default"])((0, _extends2["default"])({}, props.style), {
          height: props.height
        })
      }));
    }
  }]);
  return Dragger;
}(React.Component);

exports["default"] = Dragger;