import React from "react"; export type InputCheckboxProps = { value?: boolean default?: boolean style?: object onChange(...args: unknown[]): unknown }; export class InputCheckbox extends React.Component { isChecked() { return this.props.value ?? this.props.default ?? false; } onChange = () => { this.props.onChange(!this.isChecked()); }; render() { const checked = this.isChecked(); return
; } }