import * as React from 'react' ; import { observer } from 'mobx-react' ; export const Checkbox = observer ( ( { label , isSelected , onCheckboxChange } ) : JSX . Element => { return ( < div className = "form-check" > < label > < input type = "checkbox" name = { label } checked = { isSelected } onChange = { onCheckboxChange } className = "form-check-input" / > { label } < /label> < /div>); } ) ;