'use strict';

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 withIconSize(node, sizeClassName) {
  if (typeof node === "function") {
    const Component = node;
    return React__default.default.createElement(Component, { className: sizeClassName });
  }
  if (!React__default.default.isValidElement(node)) return node;
  const element = node;
  return React__default.default.cloneElement(element, {
    className: utils.cn(sizeClassName, element.props.className)
  });
}

exports.withIconSize = withIconSize;
//# sourceMappingURL=withIconSize-C6LP0R7o.js.map
