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 { 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); }} /> ); const copy = ( { navigator?.clipboard?.writeText(act.secretKey); }} /> ); return ( { act.cancelActivation(); }} > Step 2 of 3 - Save secret key
Save your secret key{' '} somewhere safe :
・You can use this key to generate codes if you lose access to your authenticator app.{' '} Learn more