decord/alpha/source/modules/nuf/native/showPushNotificationPromptModal.tsx
github-actions 52331fb8ae chore: update source for alpha 349.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
2026-09-30 07:29:52 +00:00

32 lines
1.3 KiB
TypeScript

// Module ID: 15823
// Function ID: 15824
// Name: showPushNotificationPromptModal
// Dependencies: [12107, 12403, 5069, 15824, 1981, 12110, 2]
// Exports: showPushNotificationPromptModal
// Module 15823 (showPushNotificationPromptModal)
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5069 */;
import PushNotificationPermissionStore from "PushNotificationPermissionStore" /* 12107 */;
import NUFConstants from "NUFConstants" /* 12403 */;
import size from "module_2" /* 2 */;
const PermissionStateType = PushNotificationPermissionStore.PermissionStateType;
let closure_4 = NUFConstants.NUF_NOTIFICATION_MODAL_KEY;
let result = size.fileFinishedImporting("modules/nuf/native/showPushNotificationPromptModal.tsx");
export const showPushNotificationPromptModal = function showPushNotificationPromptModal(onComplete) {
onComplete = onComplete.onComplete;
ModalActionCreatorsDefault.pushLazy(onComplete(1981)(15824, dependencyMap.paths), {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
}, closure_4);
const obj2 = {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
};
const result = onComplete(12110).setPushPermissionState(PermissionStateType.PROMPT_SEEN);
};