// 导入失败模块
import React from 'react';
import { Divider } from 'antd';
import { CloseCircleFilled } from '@ant-design/icons';
var Error = function Error(_ref) {
  var errorTip = _ref.errorTip,
    errorFileUrl = _ref.errorFileUrl,
    onReImport = _ref.onReImport;
  var defaultTip = errorFileUrl ? '导入失败，请检查报错文档内容，根据提示修改后重新导入' : '导入失败，请重新导入';
  return /*#__PURE__*/React.createElement("div", {
    className: "container-error"
  }, /*#__PURE__*/React.createElement(CloseCircleFilled, null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    className: "title"
  }, "\u5BFC\u5165\u5931\u8D25"), /*#__PURE__*/React.createElement("div", {
    className: "desc"
  }, (typeof errorTip === 'function' ? errorTip(errorFileUrl) : errorTip) || defaultTip), /*#__PURE__*/React.createElement("div", null, errorFileUrl && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("a", {
    href: errorFileUrl
  }, "\u4E0B\u8F7D\u62A5\u9519\u6587\u6863"), /*#__PURE__*/React.createElement(Divider, {
    type: "vertical"
  })), /*#__PURE__*/React.createElement("a", {
    onClick: onReImport
  }, "\u91CD\u65B0\u5BFC\u5165"))));
};
export default Error;