decord/source/modules/lurker_mode/native/useIsGameCommunityServerPreview.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

37 lines
1.3 KiB
TypeScript

// Module ID: 16201
// Function ID: 16202
// Name: useIsGameCommunityServerPreview
// Dependencies: [4276, 1074, 504, 2]
// Exports: default, isGameCommunityServerPreview
// Module 16201 (useIsGameCommunityServerPreview)
import LurkingStore from "LurkingStore" /* 4276 */;
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;
};