({ appearance, icon, className, ...props }: ButtonIconProps)
| 4 | import React from 'react'; |
| 5 | |
| 6 | export const ButtonIcon = ({ appearance, icon, className, ...props }: ButtonIconProps): JSX.Element => { |
| 7 | const IconComp = icons[icon]; |
| 8 | return ( |
| 9 | <button |
| 10 | className={cn(styles.button, className, { |
| 11 | [styles.primary]: appearance == 'primary', |
| 12 | [styles.white]: appearance == 'white', |
| 13 | })} |
| 14 | {...props} |
| 15 | > |
| 16 | <IconComp /> |
| 17 | </button> |
| 18 | ); |
| 19 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected