const onChange = (e: SyntheticEvent<HTMLInputElement>) => {
    if (props.onChange) {
      props.onChange(e.currentTarget.checked);
    }
  };