decord/source/modules/soundboard/useGuildIdsToFetchSoundsFor.tsx

33 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 7354
// Function ID: 7355
2026-07-29 08:29:29 +00:00
// Name: useGuildIdsToFetchSoundsFor
// Dependencies: [19, 1979, 5026, 563, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGuildIdsToFetchSoundsFor, useGuildIdsToFetchSoundsFor
// Module 7354 (useGuildIdsToFetchSoundsFor)
import _mod19 from "module_19" /* 19 */;
import GuildStore from "GuildStore" /* 1979 */;
import SoundboardStore from "SoundboardStore" /* 5026 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const useMemo = _mod19.useMemo;
const result = size.fileFinishedImporting("modules/soundboard/useGuildIdsToFetchSoundsFor.tsx");
2026-07-20 16:05:17 +00:00
export const useGuildIdsToFetchSoundsFor = function useGuildIdsToFetchSoundsFor() {
const items = [GuildStore];
2026-07-29 08:29:29 +00:00
stateFromStoresArray = stateFromStoresArray(stateFromStores[3]).useStateFromStoresArray(items, () => guildIds.getGuildIds());
2026-07-23 10:11:24 +00:00
const obj = stateFromStoresArray(stateFromStores[3]);
const items1 = [SoundboardStore];
2026-07-29 08:29:29 +00:00
stateFromStores = stateFromStoresArray(stateFromStores[3]).useStateFromStores(items1, () => sounds.getSounds());
2026-07-20 16:05:17 +00:00
const items2 = [stateFromStoresArray, stateFromStores];
2026-07-29 08:29:29 +00:00
return useMemo(() => {
closure_0 = stateFromStores;
return stateFromStoresArray.filter((item) => null == closure_0.get(item));
2026-07-29 08:29:29 +00:00
}, items2);
2026-07-20 16:05:17 +00:00
};
export const getGuildIdsToFetchSoundsFor = function getGuildIdsToFetchSoundsFor() {
const guildIds = GuildStore.getGuildIds();
const sounds = SoundboardStore.getSounds();
return guildIds.filter((item) => null == closure_0.get(item));
2026-07-20 16:05:17 +00:00
};