import React from 'react';
import Icon from "../Icon";
import "./index.less";
var IconText = function IconText(_ref) {
  var state = _ref.state,
    icon = _ref.icon,
    children = _ref.children,
    className = _ref.className;
  return /*#__PURE__*/React.createElement("span", {
    className: ['hc-icon-text', className].filter(Boolean).join(' ')
  }, state ? /*#__PURE__*/React.createElement("span", {
    className: "".concat(state, " point")
  }) : null, icon ? /*#__PURE__*/React.createElement(Icon, {
    name: icon
  }) : null, /*#__PURE__*/React.createElement("span", {
    className: "text"
  }, children));
};
export default IconText;