Files
discord-decomp/modules/webauthn/native/PasskeyUpsellActionCreators.tsx
T
2026-11-01 12:12:55 +02:00

32 lines
1.4 KiB
TypeScript

// Metro module 13758 (f13759).
import { UNSAFE_isDismissibleContentDismissed } from "../../dismissible_content/DismissibleContentUnsafeUtils";
import { DismissibleContent } from "../../../_bundle/Module1358";
import { requestMarkDismissibleContentAsShown } from "../../dismissible_content/DismissibleContentUtils";
import ModalActionCreators from "../../../actions/ModalActionCreators";
import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators";
let c9570_3 = "PASSKEY_UPSELL_KEY";
const r14 = {
openPasskeyUpsell: function openPasskeyUpsell() {
if (!UNSAFE_isDismissibleContentDismissed(DismissibleContent.PASSWORDLESS_UPSELL)) {
requestMarkDismissibleContentAsShown(DismissibleContent.PASSWORDLESS_UPSELL);
this.openPasskeyUpsellPromoSheet();
}
},
openPasskeyUpsellModal: () => {
ModalActionCreators.pushLazy(import("./PasskeyUpsellFullModal"), void 0, c9570_3);
},
closePasskeyUpsellModal: () => {
ModalActionCreators.popWithKey(c9570_3);
},
openPasskeyUpsellPromoSheet: () => {
ActionSheetActionCreators.openLazy(import("./PasskeyUpsellPromoSheet"), c9570_3);
},
closePasskeyUpsellPromoSheet: () => {
ActionSheetActionCreators.hideActionSheet(c9570_3);
},
openPasskeyUpsellPromoModal: (a0) => {
ModalActionCreators.pushLazy(import("./PasskeyUpsellPromoModal"), a0, c9570_3);
}
};
export default r14;