import React__default from 'react';
import { c as cn } from './utils-BJnb9o5c.js';

function withIconSize(node, sizeClassName) {
  if (typeof node === "function") {
    const Component = node;
    return React__default.createElement(Component, { className: sizeClassName });
  }
  if (!React__default.isValidElement(node)) return node;
  const element = node;
  return React__default.cloneElement(element, {
    className: cn(sizeClassName, element.props.className)
  });
}

export { withIconSize as w };
//# sourceMappingURL=withIconSize-BonoFXeH.js.map
