// @flow import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage as Message } from 'react-intl'; import styles from 'components/profile/profileForm.scss'; import { BackButton } from 'components/profile/ProfileForm'; import MfaEnable from './MfaEnable'; import MfaDisable from './MfaDisable'; import messages from './MultiFactorAuth.intl.json'; import type { MfaStep } from './MfaEnable'; class MultiFactorAuth extends Component<{ step: MfaStep, isMfaEnabled: boolean, onSubmit: Function, onComplete: Function, onChangeStep: Function, }> { render() { const { step, onSubmit, onComplete, onChangeStep, isMfaEnabled, } = this.props; return (
{pageTitle => (

{pageTitle}

)}

{isMfaEnabled && ( )}
{isMfaEnabled || ( )}
); } } export default MultiFactorAuth;