import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withNamespaces } from 'react-i18next'; import './Checkbox.css'; class Checkbox extends Component { render() { const { title, subtitle, enabled, handleChange, t, } = this.props; return (
); } } Checkbox.propTypes = { title: PropTypes.string.isRequired, subtitle: PropTypes.string.isRequired, enabled: PropTypes.bool.isRequired, handleChange: PropTypes.func.isRequired, t: PropTypes.func, }; export default withNamespaces()(Checkbox);