"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
 * Created by GYL on 2020/12/04.
 * MyIcon组件
 */

function MyIcon(_ref) {
  var type = _ref.type,
    text = _ref.text,
    style = _ref.style,
    onClick = _ref.onClick,
    _ref$className = _ref.className,
    className = _ref$className === void 0 ? '' : _ref$className,
    title = _ref.title,
    animation = _ref.animation;
  return /*#__PURE__*/_react["default"].createElement("i", {
    onClick: onClick,
    title: title,
    className: "iconfont ".concat(type, " ").concat(className, " ").concat(animation),
    style: style
  }, text);
}
var _default = exports["default"] = MyIcon;
//# sourceMappingURL=index.js.map
