import { Button } from '@/components/Button'; import { DecoratedInput } from '@/components/DecoratedInput'; import { observer } from 'mobx-react-lite'; import { FunctionComponent } from 'preact'; import { TwoFactorActivation } from './TwoFactorActivation'; import { ModalDialog, ModalDialogButtons, ModalDialogDescription, ModalDialogLabel } from '@/components/shared/ModalDialog'; export const Verification: FunctionComponent<{ activation: TwoFactorActivation; }> = observer(({ activation: act }) => { const borderInv = act.verificationStatus === 'invalid' ? 'border-dark-red' : ''; return ( Step 3 of 3 - Verification
・Enter your secret key:
・Verify the authentication code generated by your authenticator app:
{act.verificationStatus === 'invalid' && (
Incorrect credentials, please try again.
)}