UNPKG

@patreon/studio

Version:

Patreon Studio Design System

15 lines 525 B
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