Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
// Module ID: 9277
|
|
// Function ID: 9278
|
|
// Name: useGuildProfile
|
|
// Dependencies: [5, 19, 9155, 504, 9278, 2]
|
|
// Exports: useGuildProfile
|
|
|
|
// Module 9277 (useGuildProfile)
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import GuildProfileStore from "GuildProfileStore" /* 9155 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/guild_profile/hooks/useGuildProfile.tsx");
|
|
|
|
export const useGuildProfile = function useGuildProfile(guildId) {
|
|
_require = guildId;
|
|
const items = [GuildProfileStore];
|
|
const stateFromStores = require("initialize").useStateFromStores(items, () => GuildProfileStore.getProfile(closure_0));
|
|
const obj = require("initialize");
|
|
const items1 = [GuildProfileStore];
|
|
const obj3 = { guildProfile: stateFromStores, fetchGuildProfile: null, fetchStatus: null };
|
|
const stateFromStores1 = require("initialize").useStateFromStores(items1, () => GuildProfileStore.getFetchStatus(closure_0));
|
|
const items2 = [guildId];
|
|
obj3.fetchGuildProfile = noop.useCallback(asyncGeneratorStep(async () => {
|
|
let flag = guildId;
|
|
if (guildId === undefined) {
|
|
flag = false;
|
|
}
|
|
closure_129_0 = flag;
|
|
await "PX_16";
|
|
await closure_0(tmp2[4]).getGuildProfile(closure_130_0, closure_129_0);
|
|
return arg1;
|
|
}), items2);
|
|
obj3.fetchStatus = stateFromStores1;
|
|
return obj3;
|
|
};
|