decord/source/modules/nuf/native/showPushNotificationPromptModal.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

32 lines
1.3 KiB
TypeScript

// Module ID: 16031
// Function ID: 16032
// Name: showPushNotificationPromptModal
// Dependencies: [12439, 12735, 4777, 16032, 1896, 12442, 2]
// Exports: showPushNotificationPromptModal
// Module 16031 (showPushNotificationPromptModal)
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4777 */;
import PushNotificationPermissionStore from "PushNotificationPermissionStore" /* 12439 */;
import NUFConstants from "NUFConstants" /* 12735 */;
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(1896)(16032, dependencyMap.paths), {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
}, closure_4);
const obj2 = {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
};
const result = onComplete(12442).setPushPermissionState(PermissionStateType.PROMPT_SEEN);
};