import { Tooltip } from 'antd';
import React from 'react';
import Icon from "../Icon";
import "./index.less";
var IconPopTips = function IconPopTips(_ref) {
  var title = _ref.title,
    _ref$iconName = _ref.iconName,
    iconName = _ref$iconName === void 0 ? 'v35_Help' : _ref$iconName,
    _ref$placement = _ref.placement,
    placement = _ref$placement === void 0 ? 'topRight' : _ref$placement;
  return /*#__PURE__*/React.createElement(Tooltip, {
    title: title,
    placement: placement,
    arrow: {
      pointAtCenter: true
    },
    classNames: {
      root: 'hc-icon-pop-tips-tooltip'
    }
  }, /*#__PURE__*/React.createElement("span", {
    className: "hc-icon-pop-tips-icon"
  }, /*#__PURE__*/React.createElement(Icon, {
    name: iconName
  })));
};
export default IconPopTips;