({
name,
className,
...props
})
| 892 | ` |
| 893 | |
| 894 | export const Icon: React.FC<React.HTMLAttributes<SVGSVGElement> & Record<'name', IconName>> = ({ |
| 895 | name, |
| 896 | className, |
| 897 | ...props |
| 898 | }) => { |
| 899 | const IconComponent = IconMap[name] |
| 900 | |
| 901 | return ( |
| 902 | <IconStyles className={className}> |
| 903 | <IconComponent {...props} /> |
| 904 | </IconStyles> |
| 905 | ) |
| 906 | } |
| 907 | |
| 908 | export const IconCustom: React.FC<React.HTMLAttributes<SVGSVGElement>> = ({ |
| 909 | className, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…