({
secondary = false,
size = IconSize.XSmall,
className = '',
IconPrimary,
IconSecondary,
...rest
}: Props)
| 47 | }; |
| 48 | |
| 49 | const Icon = ({ |
| 50 | secondary = false, |
| 51 | size = IconSize.XSmall, |
| 52 | className = '', |
| 53 | IconPrimary, |
| 54 | IconSecondary, |
| 55 | ...rest |
| 56 | }: Props): ReactElement => { |
| 57 | const IconComponent = secondary ? IconSecondary : IconPrimary; |
| 58 | |
| 59 | return ( |
| 60 | <IconComponent |
| 61 | className={classNames( |
| 62 | iconSizeToClassName[size], |
| 63 | 'pointer-events-none', |
| 64 | className, |
| 65 | )} |
| 66 | {...rest} |
| 67 | /> |
| 68 | ); |
| 69 | }; |
| 70 | |
| 71 | export /** |
| 72 | * Icon wrapper so we can use more then single element inside the icon |
nothing calls this directly
no outgoing calls
no test coverage detected