decord/stable/source/modules/soundboard/useGuildIdsToFetchSoundsFor.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

32 lines
1.4 KiB
TypeScript

// Module ID: 7443
// Function ID: 7444
// Name: useGuildIdsToFetchSoundsFor
// Dependencies: [19, 1979, 5093, 563, 2]
// Exports: getGuildIdsToFetchSoundsFor, useGuildIdsToFetchSoundsFor
// Module 7443 (useGuildIdsToFetchSoundsFor)
import _mod19 from "module_19" /* 19 */;
import GuildStore from "GuildStore" /* 1979 */;
import SoundboardStore from "SoundboardStore" /* 5093 */;
import size from "module_2" /* 2 */;
const useMemo = _mod19.useMemo;
const result = size.fileFinishedImporting("modules/soundboard/useGuildIdsToFetchSoundsFor.tsx");
export const useGuildIdsToFetchSoundsFor = function useGuildIdsToFetchSoundsFor() {
const items = [GuildStore];
stateFromStoresArray = stateFromStoresArray(stateFromStores[3]).useStateFromStoresArray(items, () => guildIds.getGuildIds());
const obj = stateFromStoresArray(stateFromStores[3]);
const items1 = [SoundboardStore];
stateFromStores = stateFromStoresArray(stateFromStores[3]).useStateFromStores(items1, () => sounds.getSounds());
const items2 = [stateFromStoresArray, stateFromStores];
return useMemo(() => {
closure_0 = stateFromStores;
return stateFromStoresArray.filter((item) => null == closure_0.get(item));
}, items2);
};
export const getGuildIdsToFetchSoundsFor = function getGuildIdsToFetchSoundsFor() {
const guildIds = GuildStore.getGuildIds();
const sounds = SoundboardStore.getSounds();
return guildIds.filter((item) => null == closure_0.get(item));
};