decord/source/modules/lurker_mode/native/useIsGameCommunityServerPreview.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

37 lines
1.3 KiB
TypeScript

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