({ type, className, children, onClick })
| 12 | }; |
| 13 | |
| 14 | export function Button({ type, className, children, onClick }) { |
| 15 | return ( |
| 16 | <button type={type} className={`${className} px-2 py-1 rounded`} onClick={onClick}> |
| 17 | {children} |
| 18 | </button> |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | Button.propTypes = DefaultButtonType; |
| 23 | Button.defaultProps = { |
nothing calls this directly
no outgoing calls
no test coverage detected