import React from 'react';

// 失败重传图标
var Reload = function Reload(_ref) {
  var _onClick = _ref.onClick;
  return /*#__PURE__*/React.createElement("div", {
    className: "image-reload",
    onClick: function onClick(e) {
      e.stopPropagation();
      // 上传失败允许重新上传
      if (e.currentTarget.parentNode.classList.contains('fail')) {
        _onClick && _onClick(e);
      }
    }
  }, /*#__PURE__*/React.createElement("div", {
    className: "image-reload-icon"
  }, /*#__PURE__*/React.createElement("div", {
    className: "image-reload-icon-fail"
  })));
};
export default Reload;