18 lines
534 B
TypeScript
18 lines
534 B
TypeScript
// Metro module 11472 (f11473).
|
|
import GuildStore from "../../stores/GuildStore";
|
|
import { GuildFeatures } from "../../Constants";
|
|
import { useStateFromStores } from "../../_bundle/Module589";
|
|
export default function useIsHubForGuild(a0) {
|
|
return useStateFromStores([GuildStore], () => {
|
|
if (a0 == null) {
|
|
return false;
|
|
}
|
|
const guild = GuildStore.getGuild(a0);
|
|
let r8 = guild == null ? void 0 : guild.features.has(GuildFeatures.HUB);
|
|
if (r8 == null) {
|
|
r8 = false;
|
|
}
|
|
return r8;
|
|
}, [a0]);
|
|
};
|