import React from 'react';
export var getCurIcon = function getCurIcon(Icons, type, isFill, extraProps) {
  if (!type) return null;
  var upperCaseType = type === null || type === void 0 ? void 0 : type.replace(/(^.{1})/, function ($1) {
    return $1.toUpperCase();
  });
  var iconType = isFill ? 'Fill' : 'Line';
  var Comp = Icons[upperCaseType + iconType];
  return /*#__PURE__*/React.createElement(Comp, Object.assign({}, extraProps));
};