decord/source/modules/lurker_mode/native/useIsGameCommunityServerPreview.tsx

38 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 16199
// Function ID: 16200
2026-08-11 06:20:06 +00:00
// Name: useIsGameCommunityServerPreview
// Dependencies: [4276, 1074, 504, 2]
2026-08-15 05:55:55 +00:00
// Exports: default, isGameCommunityServerPreview
2026-08-11 06:20:06 +00:00
// Module 16199 (useIsGameCommunityServerPreview)
import LurkingStore from "LurkingStore" /* 4276 */;
2026-08-11 06:20:06 +00:00
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");
2026-08-11 06:20:06 +00:00
export default function useIsGameCommunityServerPreview(arg0) {
_require = arg0;
const items = [LurkingStore];
2026-08-11 06:20:06 +00:00
const items1 = [arg0];
return require("initialize").useStateFromStores(items, () => {
const lurkingSourceForGuild = LurkingStore.getLurkingSourceForGuild(closure_0);
2026-08-11 06:20:06 +00:00
let type;
if (lurkingSourceForGuild != null) {
type = lurkingSourceForGuild.type;
}
return type === JoinGuildSources.GAME_COMMUNITY_UPSELL;
2026-08-11 06:20:06 +00:00
}, items1);
};
2026-08-15 05:55:55 +00:00
export const isGameCommunityServerPreview = function isGameCommunityServerPreview(id) {
const lurkingSourceForGuild = LurkingStore.getLurkingSourceForGuild(id);
2026-08-15 05:55:55 +00:00
let type;
if (lurkingSourceForGuild != null) {
type = lurkingSourceForGuild.type;
}
return type === JoinGuildSources.GAME_COMMUNITY_UPSELL;
};