27 lines
942 B
TypeScript
27 lines
942 B
TypeScript
// Metro module 8282 (f8283).
|
|
import { useCallback } from "react";
|
|
import GuildProfileStore from "../GuildProfileStore";
|
|
import { useStateFromStores } from "../../../_bundle/Module589";
|
|
import { getGuildProfile } from "../GuildProfileActionCreators";
|
|
export function useGuildProfile(a0) {
|
|
const stateFromStores = useStateFromStores([GuildProfileStore], () => GuildProfileStore.getProfile(a0));
|
|
const stateFromStores2 = useStateFromStores([GuildProfileStore], () => GuildProfileStore.getFetchStatus(a0));
|
|
return {
|
|
guildProfile: stateFromStores,
|
|
fetchGuildProfile: useCallback(async function(c26170_0) {
|
|
let c26170_2;
|
|
let c29935_0;
|
|
c26170_2 = void 0;
|
|
c29935_0 = void 0;
|
|
if (c26170_0 !== void 0) {
|
|
c29935_0 = c26170_0;
|
|
} else {
|
|
c29935_0 = false;
|
|
}
|
|
await void 0;
|
|
return await getGuildProfile(a0, c29935_0);
|
|
}, [a0]),
|
|
fetchStatus: stateFromStores2
|
|
};
|
|
}
|