import debugFactory from 'debug'; import { localize } from 'i18n-calypso'; import { Component } from 'react'; import './style.scss'; const debug = debugFactory( 'calypso:me:security:2fa-status' ); class Security2faStatus extends Component { static displayName = 'Security2faStatus'; componentDidMount() { debug( this.constructor.displayName + ' React component is mounted.' ); } componentWillUnmount() { debug( this.constructor.displayName + ' React component will unmount.' ); } render() { return (
{ this.props.twoStepEnabled ? this.props.translate( '{{status}}Status:{{/status}} Two-step authentication is currently {{onOff}}on{{/onOff}}.', { components: { status: , onOff: , }, } ) : this.props.translate( '{{status}}Status:{{/status}} Two-step authentication is currently {{onOff}}off{{/onOff}}.', { components: { status: , onOff: , }, } ) }
); } } export default localize( Security2faStatus );