decord/source/modules/game_claim/useGameClaimCoachmark.tsx

30 lines
1.2 KiB
TypeScript
Raw Normal View History

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