decord/source/modules/game_claim/useGameClaimCoachmark.tsx
2026-08-24 06:08:38 +00:00

29 lines
1.2 KiB
TypeScript

// Module ID: 15589
// Function ID: 15590
// Name: useCanShowGameClaimCoachmark
// Dependencies: [4024, 676, 15590, 589, 15517, 2]
// Exports: useCanShowGameClaimCoachmark
// Module 15589 (useCanShowGameClaimCoachmark)
import closure_2 from "getUncachedChannelPermissions" /* 4024 */;
import { Permissions } from "ME" /* 676 */;
const require = arg1;
const result = require("set").fileFinishedImporting("modules/game_claim/useGameClaimCoachmark.tsx");
export const useCanShowGameClaimCoachmark = function useCanShowGameClaimCoachmark(id) {
const _require = id;
let gameClaimCoachmarkEnabled = _require(15590).useGameClaimCoachmarkEnabled(id, "useCanShowGameClaimCoachmark");
const obj = _require(15590);
const tmp = _require;
const items = [closure_2];
const items1 = [id];
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = obj2.useStateFromStores(items, () => closure_1_2.canWithPartialContext(closure_1_3.ADMINISTRATOR, { guildId: closure_0 }), items1);
}
obj2 = _require(589);
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = tmpResult.useHasUnclaimedGames(id, gameClaimCoachmarkEnabled);
}
return gameClaimCoachmarkEnabled;
};