decord/source/modules/game_claim/useGameClaimCoachmark.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

29 lines
1.2 KiB
TypeScript

// Module ID: 16185
// Function ID: 16186
// Name: useCanShowGameClaimCoachmark
// Dependencies: [4120, 673, 16186, 586, 16114, 2]
// Exports: useCanShowGameClaimCoachmark
// Module 16185 (useCanShowGameClaimCoachmark)
import closure_2 from "getUncachedChannelPermissions" /* 4120 */;
import { Permissions } from "ME" /* 673 */;
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(16186).useGameClaimCoachmarkEnabled(id, "useCanShowGameClaimCoachmark");
const obj = _require(16186);
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(586);
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = tmpResult.useHasUnclaimedGames(id, gameClaimCoachmarkEnabled);
}
return gameClaimCoachmarkEnabled;
};