19 lines
807 B
TypeScript
19 lines
807 B
TypeScript
// Metro module 15579 (f15580).
|
|
import GameRelationshipStore from "../../game_relationships/GameRelationshipStore";
|
|
import RelationshipStore from "../../../stores/RelationshipStore";
|
|
import { useStateFromStores } from "../../../_bundle/Module589";
|
|
export function getIncomingFriendRequestCount(a0) {
|
|
const [r7, r4] = a0;
|
|
return r7.getPendingCount() + r4.getPendingIncomingCount();
|
|
}
|
|
export function useIncomingFriendRequestCount() {
|
|
return useStateFromStores([RelationshipStore, GameRelationshipStore], () => {
|
|
const [r8, r9] = [RelationshipStore, GameRelationshipStore];
|
|
return r8.getPendingCount() + r9.getPendingIncomingCount();
|
|
});
|
|
}
|
|
export function getOutgoingFriendRequestCount(r3 = [o, s]) {
|
|
const [r10, r11] = r3;
|
|
return r10.getOutgoingCount() + r11.getPendingOutgoingCount();
|
|
}
|