(options: CreateIconOptions)
| 8 | } |
| 9 | |
| 10 | export function createIcon(options: CreateIconOptions) { |
| 11 | const { content, iconProps = {}, viewBox = '0 0 1024 1024' } = options; |
| 12 | |
| 13 | return forwardRef<SVGSVGElement, IconProps>((props, ref) => { |
| 14 | return <Icon ref={ref} viewBox={viewBox} {...iconProps} {...props}> |
| 15 | {content} |
| 16 | </Icon> |
| 17 | }); |
| 18 | } |
no outgoing calls
no test coverage detected