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