import React from 'react' import Checkmark from './svg/Checkmark' export default class extends React.Component { constructor(props) { super() this.state = { isEnabled: props.enabled || false } this.toggle = this.toggle.bind(this) } toggle() { this.setState({ isEnabled: !this.state.isEnabled }) } render() { return (