20 lines
954 B
TypeScript
20 lines
954 B
TypeScript
// Metro module 13773 (f13774).
|
|
import { useLayoutEffect } from "react";
|
|
import { useNavigation } from "../../../../design/components/Navigator/native/useNavigation.native";
|
|
import { getHeaderCloseButton } from "../../../../design/components/Navigator/native/NavigatorHeader.native";
|
|
import PasskeyUpsellActionCreators from "../PasskeyUpsellActionCreators";
|
|
import UserSettingsAccountBackupCodes from "../../../user_settings/account/native/UserSettingsAccountBackupCodes";
|
|
import { intl, t } from "../../../../intl/index.native";
|
|
export default function WebAuthnSuccessStep() {
|
|
const navigation = useNavigation();
|
|
useLayoutEffect(() => {
|
|
navigation.setOptions({
|
|
headerLeft: getHeaderCloseButton(() => {
|
|
navigation.popToTop();
|
|
PasskeyUpsellActionCreators.closePasskeyUpsellModal();
|
|
})
|
|
});
|
|
}, [navigation]);
|
|
return <UserSettingsAccountBackupCodes onGenerate={null} headerLabel={intl.format(t.iVTs6i, {})} />;
|
|
};
|