import React from 'react';
import { Icon as IconWrapper } from '../Icon';
// biome-ignore lint/style/noDefaultExport: legacy code
export default function withIcon(
// eslint-disable-next-line @typescript-eslint/naming-convention
IconSvg) {
    return Object.assign(React.forwardRef(function Icon(props, ref) {
        return (<IconWrapper innerRef={ref} {...props}>
          <IconSvg />
        </IconWrapper>);
    }), {
        iconName: IconSvg.displayName ?? IconSvg.name,
    });
}
//# sourceMappingURL=withIcon.jsx.map