import { jsx as _jsx } from "react/jsx-runtime";
import { Icon } from '../../../components/icon/index.js';
import { cn } from '../../../../scalars/lib/utils.js';
export const renderIcon = (IconComponent, className) => {
    if (typeof IconComponent === 'string') {
        return _jsx(Icon, { name: IconComponent, size: 16, className: className });
    }
    return IconComponent && _jsx(IconComponent, { className: cn('size-4', className) });
};
//# sourceMappingURL=render-icon.js.map