(e: MouseEvent<HTMLButtonElement>)
| 62 | ) { |
| 63 | // I think this needs to move into some core place |
| 64 | function onClick(e: MouseEvent<HTMLButtonElement>) { |
| 65 | if (props.onClick) { |
| 66 | props.onClick && props.onClick(e) |
| 67 | } else { |
| 68 | handleClick(props, e.currentTarget) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | return ( |
| 73 | <BG |