({ checked, onChange }: Props)
| 8 | } |
| 9 | |
| 10 | export default function Toggle({ checked, onChange }: Props) { |
| 11 | return ( |
| 12 | <input |
| 13 | className={classNames(styles.checkbox, styles.switch)} |
| 14 | type="checkbox" |
| 15 | checked={checked} |
| 16 | onChange={(event: React.ChangeEvent<HTMLInputElement>) => |
| 17 | onChange(event.target.checked) |
| 18 | } |
| 19 | /> |
| 20 | ); |
| 21 | } |
nothing calls this directly
no test coverage detected