({ children, onClick, iconBefore }: ButtonProps)
| 9 | }>; |
| 10 | |
| 11 | export const Button = ({ children, onClick, iconBefore }: ButtonProps) => { |
| 12 | return ( |
| 13 | <button onClick={onClick} css={buttonCss}> |
| 14 | {iconBefore && <span css={iconCss}>{iconBefore}</span>} |
| 15 | <span css={containerCss}>{children}</span> |
| 16 | </button> |
| 17 | ); |
| 18 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected