"use strict";

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

var _reactDom = _interopRequireDefault(require("react-dom"));

var _ = _interopRequireDefault(require(".."));

var _2 = require("../..");

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

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_["default"], {
  action: "https://www.easy-mock.com/mock/5b713974309d0d7d107a74a3/alifd/upload",
  onChange: onChange,
  onSuccess: onSuccess,
  listType: "text" // @ts-ignore
  ,
  webkitdirectory: true
}, /*#__PURE__*/_react["default"].createElement(_2.Button, {
  type: "primary",
  style: {
    margin: '0 0 10px'
  }
}, /*#__PURE__*/_react["default"].createElement(_2.Icon, {
  type: "upload"
}), "Upload Directory")), document.getElementById('upload-demo-9'));

function onChange(info) {
  console.log('onChange : ', info);
}

function onSuccess(info) {
  console.log('onSuccess : ', info);
}