// 导入成功模块
import React, { useContext } from 'react';
import { CheckCircleFilled } from '@ant-design/icons';
import { ConfigContext } from "../config-provider/context";
var Success = function Success(_ref) {
  var successTip = _ref.successTip,
    onReImport = _ref.onReImport;
  var componentContext = useContext(ConfigContext);
  var uiLocale = componentContext.uiLocale;
  return /*#__PURE__*/React.createElement("div", {
    className: "container-success"
  }, /*#__PURE__*/React.createElement(CheckCircleFilled, null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    className: "title"
  }, uiLocale.FileImport.Success.title), successTip && /*#__PURE__*/React.createElement("div", {
    className: "desc"
  }, successTip), /*#__PURE__*/React.createElement("a", {
    onClick: onReImport
  }, uiLocale.FileImport.Success.continueBtnText)));
};
export default Success;