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

41 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15848
// Function ID: 15849
2026-07-20 16:05:17 +00:00
// Name: useNotificationPermissionPrompt
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 1384, 4499, 1385, 11627, 589, 1387, 11639, 15849, 15851, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15848 (useNotificationPermissionPrompt)
import closure_3 from "noop" /* 19 */;
import closure_4 from "handleUpdateUser" /* 1384 */;
import closure_5 from "_handleConnectionOpen" /* 4499 */;
import closure_6 from "handleRequiredAction" /* 1385 */;
import closure_7 from "set" /* 11627 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/nuf/native/useNotificationPermissionPrompt.tsx");
2026-07-20 16:05:17 +00:00
export default function useNotificationPermissionPrompt() {
2026-08-24 06:08:38 +00:00
const items = [closure_5];
2026-07-29 08:29:29 +00:00
stateFromStores = stateFromStores(589).useStateFromStores(items, () => connected.isConnected());
const obj = stateFromStores(589);
2026-08-24 06:08:38 +00:00
const items1 = [closure_6, closure_4];
const stateFromStores1 = stateFromStores(589).useStateFromStores(items1, () => stateFromStores1(table[6])(closure_4, closure_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-29 08:29:29 +00:00
const permission = tmp3(tmp4[7]).requestPermission();
tmp3(tmp4[7]).shouldRequestNotification = false;
const tmp3Result = tmp3(tmp4[7]);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
tmp5 = stateFromStores1(closure_1_2[7]).shouldRequestNotification && !closure_1_7.promptSeen;
2026-07-20 16:05:17 +00:00
}
}
}, items2);
2026-07-29 08:29:29 +00:00
const obj2 = stateFromStores(589);
2026-08-24 06:08:38 +00:00
const guildOpenNudge = stateFromStores(15849).useGuildOpenNudge();
const obj3 = stateFromStores(15849);
const postCallDisconnectNudge = stateFromStores(15851).usePostCallDisconnectNudge();
2026-07-20 16:05:17 +00:00
};