decord/source/modules/nuf/native/useNotificationPermissionPrompt.tsx

41 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 15320
// Function ID: 116870
2026-07-20 16:05:17 +00:00
// Name: useNotificationPermissionPrompt
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 1341, 4809, 1342, 11442, 566, 1344, 11451, 15321, 15323, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 15320 (useNotificationPermissionPrompt)
2026-07-23 10:11:24 +00:00
import result from "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_5 from "_isNativeReflectConstruct";
import closure_6 from "_isNativeReflectConstruct";
import closure_7 from "_isNativeReflectConstruct";
const require = arg1;
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/nuf/native/useNotificationPermissionPrompt.tsx");
2026-07-20 16:05:17 +00:00
export default function useNotificationPermissionPrompt() {
const items = [closure_5];
2026-07-23 10:11:24 +00:00
stateFromStores = stateFromStores(566).useStateFromStores(items, () => outer1_5.isConnected());
let obj = stateFromStores(566);
const items1 = [closure_6, _isNativeReflectConstruct];
const stateFromStores1 = stateFromStores(566).useStateFromStores(items1, () => stateFromStores1(outer1_2[6])(outer1_4, outer1_6));
2026-07-20 16:05:17 +00:00
const items2 = [stateFromStores, stateFromStores1];
const effect = React.useEffect(() => {
if (stateFromStores) {
if (!stateFromStores1) {
if (tmp5) {
2026-07-23 10:11:24 +00:00
const permission = stateFromStores1(outer1_2[7]).requestPermission();
stateFromStores1(outer1_2[7]).shouldRequestNotification = false;
const obj = stateFromStores1(outer1_2[7]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp5 = stateFromStores1(outer1_2[7]).shouldRequestNotification && !outer1_7.promptSeen;
2026-07-20 16:05:17 +00:00
}
}
}, items2);
2026-07-23 10:11:24 +00:00
const obj2 = stateFromStores(566);
2026-07-27 11:26:19 +00:00
const guildOpenNudge = stateFromStores(15321).useGuildOpenNudge();
const obj3 = stateFromStores(15321);
const postCallDisconnectNudge = stateFromStores(15323).usePostCallDisconnectNudge();
2026-07-20 16:05:17 +00:00
};