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

33 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 16332
// Function ID: 16333
// Name: showPushNotificationPromptModal
// Dependencies: [12558, 12852, 4961, 16333, 1984, 12561, 2]
// Exports: showPushNotificationPromptModal
// Module 16332 (showPushNotificationPromptModal)
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4961 */;
import PushNotificationPermissionStore from "PushNotificationPermissionStore" /* 12558 */;
import NUFConstants from "NUFConstants" /* 12852 */;
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(1984)(16333, dependencyMap.paths), {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
}, closure_4);
const obj2 = {
onComplete() {
ModalActionCreatorsDefault.popWithKey(closure_4);
onComplete();
}
};
const result = onComplete(12561).setPushPermissionState(PermissionStateType.PROMPT_SEEN);
};