import React, { PropTypes } from 'react' ToggleButton.propTypes = { checked: PropTypes.bool.isRequired, onToggle: PropTypes.func.isRequired, text: PropTypes.string.isRequired } export default function ToggleButton({ checked, onToggle, text }) { return (