decord/source/modules/notification_center/useGetOrFetchNotificationCenterItemApplications.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

38 lines
1.6 KiB
TypeScript

// Module ID: 16486
// Function ID: 16487
// Name: useGetOrFetchNotificationCenterItemApplications
// Dependencies: [19, 7713, 7242, 2]
// Exports: useGetOrFetchNotificationCenterItemsApplications
// Module 16486 (useGetOrFetchNotificationCenterItemApplications)
import useGetOrFetchApplicationsDefault from "useGetOrFetchApplications" /* 7242 */;
import noop from "module_19" /* 19 */;
let items = [fn(7713).NotificationCenterLocalItems.INCOMING_GAME_FRIEND_REQUESTS, fn(7713).NotificationCenterLocalItems.INCOMING_GAME_FRIEND_REQUESTS_ACCEPTED, fn(7713).NotificationCenterLocalItems.INCOMING_FRIEND_REQUESTS, fn(7713).NotificationCenterLocalItems.INCOMING_FRIEND_REQUESTS_ACCEPTED];
let set = new Set(items);
const size = fn(2);
const result = size.fileFinishedImporting("modules/notification_center/useGetOrFetchNotificationCenterItemApplications.tsx");
export const useGetOrFetchNotificationCenterItemsApplications = function useGetOrFetchNotificationCenterItemsApplications(stateFromStores1) {
importDefault = stateFromStores1;
let items = [stateFromStores1];
const memo = noop.useMemo(() => {
set = new Set();
const items = [];
const item = stateFromStores1.forEach((applicationId) => {
applicationId = applicationId.applicationId;
if (set.has(applicationId.type)) {
let hasItem = null == applicationId;
if (!hasItem) {
hasItem = set.has(applicationId);
}
if (!hasItem) {
set.add(applicationId);
items.push(applicationId);
}
}
});
return items;
}, items);
return useGetOrFetchApplicationsDefault(memo);
};