var _excluded = ["type", "mode"];
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/**
 * 访问阿里图标项目，需管理员梦飞（chumengfei@corp.netease.com）开通权限
 */
import React from 'react';
import { createFromIconfontCN } from '@ant-design/icons';
var IconSvg = createFromIconfontCN({
  scriptUrl: ['//at.alicdn.com/t/c/font_2746776_rkhvvs4ufv.js']
});
var IconFont = function IconFont(props) {
  var type = props.type,
    _props$mode = props.mode,
    mode = _props$mode === void 0 ? 'svg' : _props$mode,
    res = _objectWithoutProperties(props, _excluded);
  return mode === 'svg' ? /*#__PURE__*/React.createElement(IconSvg, _extends({
    type: type
  }, res)) : /*#__PURE__*/React.createElement("span", _extends({
    className: "iconfont ".concat(type)
  }, res));
};
export default IconFont;