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

{pageTitle}

)}

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