decord/source/modules/game_claim/useGameClaimCoachmark.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

29 lines
1.2 KiB
TypeScript

// Module ID: 16261
// Function ID: 16262
// Name: useCanShowGameClaimCoachmark
// Dependencies: [4199, 1074, 16262, 504, 16192, 2]
// Exports: useCanShowGameClaimCoachmark
// Module 16261 (useCanShowGameClaimCoachmark)
import closure_2 from "getUncachedChannelPermissions" /* 4199 */;
import { Permissions } from "ME" /* 1074 */;
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(16262).useGameClaimCoachmarkEnabled(id, "useCanShowGameClaimCoachmark");
const obj = _require(16262);
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(504);
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = tmpResult.useHasUnclaimedGames(id, gameClaimCoachmarkEnabled);
}
return gameClaimCoachmarkEnabled;
};