import type { TwoFactorSecret } from "@/accounts/types/user"; import EnteSpinner from "@ente/shared/components/EnteSpinner"; import { t } from "i18next"; import LinkButton from "@ente/shared/components/LinkButton"; import { Typography } from "@mui/material"; import { LoadingQRCode, QRCode } from "../styledComponents"; interface Iprops { twoFactorSecret?: TwoFactorSecret; changeToManualMode: () => void; } export default function SetupQRMode({ twoFactorSecret, changeToManualMode, }: Iprops) { return ( <> {t("TWO_FACTOR_QR_INSTRUCTION")} {!twoFactorSecret ? ( ) : ( )} {t("ENTER_CODE_MANUALLY")} ); }