22 lines
841 B
TypeScript
22 lines
841 B
TypeScript
// Metro module 15228 (f15229).
|
|
import PermissionStore from "../../stores/PermissionStore";
|
|
import { Permissions } from "../../Constants";
|
|
import { useGameClaimCoachmarkEnabled } from "./experiments/GameClaimCoachmarkExperiment";
|
|
import { useStateFromStores } from "../../_bundle/Module589";
|
|
import { useHasUnclaimedGames } from "./UnclaimedGamesActionCreators";
|
|
export function useCanShowGameClaimCoachmark(a0) {
|
|
const guildId = a0;
|
|
let r11 = useGameClaimCoachmarkEnabled(a0, "useCanShowGameClaimCoachmark");
|
|
const stateFromStores = useStateFromStores([PermissionStore], () => PermissionStore.canWithPartialContext(Permissions.ADMINISTRATOR, {
|
|
guildId
|
|
}), [a0]);
|
|
if (r11) {
|
|
r11 = stateFromStores;
|
|
}
|
|
const hasUnclaimedGames = useHasUnclaimedGames(a0, r11);
|
|
if (r11) {
|
|
r11 = hasUnclaimedGames;
|
|
}
|
|
return r11;
|
|
}
|