decord/source/modules/lurker_mode/native/useIsGameCommunityServerPreview.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

37 lines
1.3 KiB
TypeScript

// Module ID: 16234
// Function ID: 16235
// Name: useIsGameCommunityServerPreview
// Dependencies: [4277, 1074, 504, 2]
// Exports: default, isGameCommunityServerPreview
// Module 16234 (useIsGameCommunityServerPreview)
import LurkingStore from "LurkingStore" /* 4277 */;
const require = globalThis.__r;
const require = fn;
const JoinGuildSources = fn(1074).JoinGuildSources;
const size = fn(2);
const result = size.fileFinishedImporting("modules/lurker_mode/native/useIsGameCommunityServerPreview.tsx");
export default function useIsGameCommunityServerPreview(arg0) {
_require = arg0;
const items = [LurkingStore];
const items1 = [arg0];
return require("initialize").useStateFromStores(items, () => {
const lurkingSourceForGuild = LurkingStore.getLurkingSourceForGuild(closure_0);
let type;
if (lurkingSourceForGuild != null) {
type = lurkingSourceForGuild.type;
}
return type === JoinGuildSources.GAME_COMMUNITY_UPSELL;
}, items1);
};
export const isGameCommunityServerPreview = function isGameCommunityServerPreview(id) {
const lurkingSourceForGuild = LurkingStore.getLurkingSourceForGuild(id);
let type;
if (lurkingSourceForGuild != null) {
type = lurkingSourceForGuild.type;
}
return type === JoinGuildSources.GAME_COMMUNITY_UPSELL;
};