'use strict';

var jsxRuntime = require('react/jsx-runtime');
var React = require('react');
var utils = require('./utils-BhM0B89p.js');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

function renderIcon(icon, extraClassName) {
  if (typeof icon === "string") {
    return /* @__PURE__ */ jsxRuntime.jsx("i", { className: utils.cn(icon, extraClassName), "aria-hidden": "true" });
  }
  if (React__default.default.isValidElement(icon)) {
    return React__default.default.cloneElement(
      icon,
      {
        "aria-hidden": "true",
        className: utils.cn(
          icon.props.className,
          extraClassName
        )
      }
    );
  }
  const IconComp = icon;
  return /* @__PURE__ */ jsxRuntime.jsx(IconComp, { "aria-hidden": "true", className: extraClassName });
}

exports.renderIcon = renderIcon;
//# sourceMappingURL=renderIcon-BRrpZu9a.js.map
