decord/alpha/source/modules/nuf/native/showPushNotificationPromptModal.tsx

33 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 16323
// Function ID: 16324
2026-07-20 16:05:17 +00:00
// Name: showPushNotificationPromptModal
// Dependencies: [12661, 12956, 4959, 16324, 1980, 12664, 2]
2026-07-20 16:05:17 +00:00
// Exports: showPushNotificationPromptModal
// Module 16323 (showPushNotificationPromptModal)
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4959 */;
import PushNotificationPermissionStore from "PushNotificationPermissionStore" /* 12661 */;
import NUFConstants from "NUFConstants" /* 12956 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const PermissionStateType = PushNotificationPermissionStore.PermissionStateType;
let closure_4 = NUFConstants.NUF_NOTIFICATION_MODAL_KEY;
let result = size.fileFinishedImporting("modules/nuf/native/showPushNotificationPromptModal.tsx");
2026-07-20 16:05:17 +00:00
export const showPushNotificationPromptModal = function showPushNotificationPromptModal(onComplete) {
2026-07-23 10:11:24 +00:00
onComplete = onComplete.onComplete;
ModalActionCreatorsDefault.pushLazy(onComplete(1980)(16324, dependencyMap.paths), {
2026-07-20 16:05:17 +00:00
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
}, closure_4);
const obj2 = {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
2026-07-20 16:05:17 +00:00
onComplete();
}
};
const result = onComplete(12664).setPushPermissionState(PermissionStateType.PROMPT_SEEN);
2026-07-20 16:05:17 +00:00
};