decord/source/modules/game_claim/useGameClaimCoachmark.tsx

29 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 15142
// Function ID: 115236
2026-07-20 16:05:17 +00:00
// Name: useCanShowGameClaimCoachmark
2026-07-25 08:10:48 +00:00
// Dependencies: [3759, 653, 15143, 566, 15077, 2]
2026-07-20 16:05:17 +00:00
// Exports: useCanShowGameClaimCoachmark
2026-07-25 08:10:48 +00:00
// Module 15142 (useCanShowGameClaimCoachmark)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Permissions } from "ME";
const require = arg1;
const result = require("items").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-07-25 08:10:48 +00:00
let gameClaimCoachmarkEnabled = _require(15143).useGameClaimCoachmarkEnabled(id, "useCanShowGameClaimCoachmark");
const obj = _require(15143);
2026-07-23 10:11:24 +00:00
const items = [_isNativeReflectConstruct];
2026-07-20 16:05:17 +00:00
const items1 = [id];
if (gameClaimCoachmarkEnabled) {
2026-07-23 10:11:24 +00:00
gameClaimCoachmarkEnabled = obj2.useStateFromStores(items, () => outer1_2.canWithPartialContext(outer1_3.ADMINISTRATOR, { guildId: closure_0 }), items1);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj2 = _require(566);
2026-07-20 16:05:17 +00:00
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = obj3.useHasUnclaimedGames(id, gameClaimCoachmarkEnabled);
}
return gameClaimCoachmarkEnabled;
};