2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 6758
|
|
|
|
|
// Function ID: 6759
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useGuildIdsToFetchSoundsFor
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [19, 2067, 5319, 563, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: getGuildIdsToFetchSoundsFor, useGuildIdsToFetchSoundsFor
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 6758 (useGuildIdsToFetchSoundsFor)
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import GuildStore from "GuildStore" /* 2067 */;
|
|
|
|
|
import SoundboardStore from "SoundboardStore" /* 5319 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
const useMemo = react.useMemo;
|
2026-09-18 19:45:33 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/soundboard/useGuildIdsToFetchSoundsFor.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export const useGuildIdsToFetchSoundsFor = function useGuildIdsToFetchSoundsFor() {
|
2026-10-01 14:13:23 +00:00
|
|
|
let guildIds;
|
|
|
|
|
let sounds;
|
|
|
|
|
let stateFromStores;
|
|
|
|
|
let stateFromStoresArray;
|
2026-09-18 19:45:33 +00:00
|
|
|
const items = [GuildStore];
|
2026-09-26 17:57:22 +00:00
|
|
|
const obj = stateFromStoresArray(stateFromStores[3]);
|
2026-10-01 14:13:23 +00:00
|
|
|
stateFromStoresArray = obj.useStateFromStoresArray(items, () => guildIds.getGuildIds());
|
2026-09-18 19:45:33 +00:00
|
|
|
const items1 = [SoundboardStore];
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = stateFromStoresArray(stateFromStores[3]);
|
|
|
|
|
stateFromStores = obj2.useStateFromStores(items1, () => sounds.getSounds());
|
2026-09-18 19:45:33 +00:00
|
|
|
const items2 = [stateFromStoresArray, stateFromStores];
|
|
|
|
|
return useMemo(() => {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0 = stateFromStores;
|
2026-09-18 19:45:33 +00:00
|
|
|
return stateFromStoresArray.filter((item) => null == closure_0.get(item));
|
|
|
|
|
}, items2);
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|
2026-09-18 19:45:33 +00:00
|
|
|
export const getGuildIdsToFetchSoundsFor = function getGuildIdsToFetchSoundsFor() {
|
|
|
|
|
const guildIds = GuildStore.getGuildIds();
|
|
|
|
|
const sounds = SoundboardStore.getSounds();
|
|
|
|
|
return guildIds.filter((item) => null == closure_0.get(item));
|
|
|
|
|
};
|