29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
// Module ID: 15381
|
|
// Function ID: 15382
|
|
// Name: useCanShowGameClaimCoachmark
|
|
// Dependencies: [3929, 676, 15382, 589, 15311, 2]
|
|
// Exports: useCanShowGameClaimCoachmark
|
|
|
|
// Module 15381 (useCanShowGameClaimCoachmark)
|
|
import getUncachedChannelPermissions from "getUncachedChannelPermissions";
|
|
import { Permissions } from "ME";
|
|
|
|
const require = arg1;
|
|
const result = require("experiment").fileFinishedImporting("modules/game_claim/useGameClaimCoachmark.tsx");
|
|
|
|
export const useCanShowGameClaimCoachmark = function useCanShowGameClaimCoachmark(id) {
|
|
const _require = id;
|
|
let gameClaimCoachmarkEnabled = _require(15382).useGameClaimCoachmarkEnabled(id, "useCanShowGameClaimCoachmark");
|
|
const obj = _require(15382);
|
|
const tmp = _require;
|
|
const items = [getUncachedChannelPermissions];
|
|
const items1 = [id];
|
|
if (gameClaimCoachmarkEnabled) {
|
|
gameClaimCoachmarkEnabled = obj2.useStateFromStores(items, () => outer1_2.canWithPartialContext(outer1_3.ADMINISTRATOR, { guildId: closure_0 }), items1);
|
|
}
|
|
obj2 = _require(589);
|
|
if (gameClaimCoachmarkEnabled) {
|
|
gameClaimCoachmarkEnabled = tmpResult.useHasUnclaimedGames(id, gameClaimCoachmarkEnabled);
|
|
}
|
|
return gameClaimCoachmarkEnabled;
|
|
};
|