decord/alpha/source/modules/nuf/native/showPushNotificationPromptModal.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

32 lines
1.3 KiB
TypeScript

// Module ID: 16417
// Function ID: 16418
// Name: showPushNotificationPromptModal
// Dependencies: [12758, 13053, 5032, 16418, 1980, 12761, 2]
// Exports: showPushNotificationPromptModal
// Module 16417 (showPushNotificationPromptModal)
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5032 */;
import PushNotificationPermissionStore from "PushNotificationPermissionStore" /* 12758 */;
import NUFConstants from "NUFConstants" /* 13053 */;
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(1980)(16418, dependencyMap.paths), {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
}, closure_4);
const obj2 = {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
};
const result = onComplete(12761).setPushPermissionState(PermissionStateType.PROMPT_SEEN);
};