29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
// Module ID: 16264
|
|
// Function ID: 16265
|
|
// Name: useCanShowGameClaimCoachmark
|
|
// Dependencies: [4199, 1074, 16265, 504, 16195, 2]
|
|
// Exports: useCanShowGameClaimCoachmark
|
|
|
|
// Module 16264 (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(16265).useGameClaimCoachmarkEnabled(id, "useCanShowGameClaimCoachmark");
|
|
const obj = _require(16265);
|
|
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;
|
|
};
|