import { FunctionComponent } from 'preact'; import { observer } from 'mobx-react-lite'; import { DecoratedInput } from '../../../components/DecoratedInput'; import { IconButton } from '../../../components/IconButton'; import { Button } from '@/components/Button'; import { TwoFactorActivation } from './model'; import { TwoFactorDialog, TwoFactorDialogLabel, TwoFactorDialogDescription, TwoFactorDialogButtons, } from './TwoFactorDialog'; import { AuthAppInfoTooltip } from './AuthAppInfoPopup'; export const ScanQRCode: FunctionComponent<{ activation: TwoFactorActivation; }> = observer(({ activation: act }) => { const copy = ( { navigator?.clipboard?.writeText(act.secretKey); }} /> ); return ( { act.cancelActivation(); }} > Step 1 of 3 - Scan QR code
QR code
・Open your authenticator app.
Scan this QR code or add this secret key: