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

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

export { renderIcon as r };
//# sourceMappingURL=renderIcon-tlvMyboj.js.map
