import React from 'react'; import { Checkbox } from 'plugin-api/beta/client/components/ui'; import { t } from 'plugin-api/beta/client/services'; import styles from './TermsAndConditionsField.css'; import cn from 'classnames'; const TermsLink = () => ( {t('talk-plugin-auth-checkbox.terms')} ); const PrivacyLink = () => ( {t('talk-plugin-auth-checkbox.privacy-policy')} ); class TermsAndConditionsField extends React.Component { state = { checked: false }; id = 'terms-and-conditions'; componentWillMount() { this.props.indicateBlocker(); } onChange = ({ target: { checked } }) => { this.setState({ checked }); if (checked) { this.props.indicateBlockerResolved(); } else { this.props.indicateBlocker(); } }; render() { return (
{t('talk-plugin-auth-checkbox.copy')} {t('talk-plugin-auth-checkbox.and')} {t('talk-plugin-auth-checkbox.from')}
); } } export default TermsAndConditionsField;