import { Button } from '@/components/Button'; import { DecoratedInput } from '@/components/DecoratedInput'; import { IconButton } from '@/components/IconButton'; import { observer } from 'mobx-react-lite'; import { FunctionComponent } from 'preact'; import { CopyButton } from './CopyButton'; import { Bullet } from './Bullet'; import { downloadSecretKey } from './download-secret-key'; import { TwoFactorActivation } from './TwoFactorActivation'; import { ModalDialog, ModalDialogButtons, ModalDialogDescription, ModalDialogLabel, } from '@/components/shared/ModalDialog'; export const SaveSecretKey: FunctionComponent<{ activation: TwoFactorActivation; }> = observer(({ activation: act }) => { const download = ( { downloadSecretKey(act.secretKey); }} /> ); return ( { act.cancelActivation(); }} > Step 2 of 3 - Save secret key
Save your secret key{' '} somewhere safe :
, download]} text={act.secretKey} />
You can use this key to generate codes if you lose access to your authenticator app.{' '} Learn more