import { FunctionComponent } from 'preact'; import { observer } from 'mobx-react-lite'; import QRCode from 'qrcode.react'; import { DecoratedInput } from '@/components/DecoratedInput'; import { IconButton } from '@/components/IconButton'; import { Button } from '@/components/Button'; import { TwoFactorActivation } from './TwoFactorActivation'; import { AuthAppInfoTooltip } from './AuthAppInfoPopup'; import { ModalDialog, ModalDialogButtons, ModalDialogDescription, ModalDialogLabel } from '@/components/shared/ModalDialog'; 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
・Open your authenticator app.
Scan this QR code or add this secret key: