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

41 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 16342
// Function ID: 16343
2026-07-20 16:05:17 +00:00
// Name: useNotificationPermissionPrompt
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 1379, 5229, 1380, 12202, 586, 1382, 12211, 16343, 16345, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 16342 (useNotificationPermissionPrompt)
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
2026-09-02 09:53:35 +00:00
import closure_4 from "handleUpdateUser" /* 1379 */;
import closure_5 from "_handleConnectionOpen" /* 5229 */;
import closure_6 from "handleRequiredAction" /* 1380 */;
import closure_7 from "set" /* 12202 */;
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-09-02 09:53:35 +00:00
stateFromStores = stateFromStores(586).useStateFromStores(items, () => connected.isConnected());
const obj = stateFromStores(586);
2026-08-24 06:08:38 +00:00
const items1 = [closure_6, closure_4];
2026-09-02 09:53:35 +00:00
const stateFromStores1 = stateFromStores(586).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-09-02 09:53:35 +00:00
const obj2 = stateFromStores(586);
const guildOpenNudge = stateFromStores(16343).useGuildOpenNudge();
const obj3 = stateFromStores(16343);
const postCallDisconnectNudge = stateFromStores(16345).usePostCallDisconnectNudge();
2026-07-20 16:05:17 +00:00
};