decord/source/modules/game_claim/useGameClaimCoachmark.tsx
2026-07-25 08:10:48 +00:00

28 lines
1.1 KiB
TypeScript

// Module ID: 15142
// Function ID: 115236
// Name: useCanShowGameClaimCoachmark
// Dependencies: [3759, 653, 15143, 566, 15077, 2]
// Exports: useCanShowGameClaimCoachmark
// Module 15142 (useCanShowGameClaimCoachmark)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Permissions } from "ME";
const require = arg1;
const result = require("items").fileFinishedImporting("modules/game_claim/useGameClaimCoachmark.tsx");
export const useCanShowGameClaimCoachmark = function useCanShowGameClaimCoachmark(id) {
const _require = id;
let gameClaimCoachmarkEnabled = _require(15143).useGameClaimCoachmarkEnabled(id, "useCanShowGameClaimCoachmark");
const obj = _require(15143);
const items = [_isNativeReflectConstruct];
const items1 = [id];
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = obj2.useStateFromStores(items, () => outer1_2.canWithPartialContext(outer1_3.ADMINISTRATOR, { guildId: closure_0 }), items1);
}
obj2 = _require(566);
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = obj3.useHasUnclaimedGames(id, gameClaimCoachmarkEnabled);
}
return gameClaimCoachmarkEnabled;
};