Files
discord-decomp/modules/game_relationships/hooks/useIsGameFriends.tsx
T
2026-11-01 12:12:55 +02:00

10 lines
647 B
TypeScript

// Metro module 12174 (f12175).
import _slicedToArray from "../../../_bundle/_slicedToArray";
import GameRelationshipStore from "../GameRelationshipStore";
import { RelationshipTypes } from "../../../Constants";
import { useStateFromStores } from "../../../_bundle/Module589";
import { isVersionEqual } from "../../../utils/SecondaryIndexMapUtils";
export function useIsGameFriends(a0) {
return _slicedToArray(useStateFromStores([GameRelationshipStore], () => [GameRelationshipStore.getGameRelationshipsForUserByType(a0, RelationshipTypes.FRIEND).length > 0, GameRelationshipStore.getGameRelationshipsVersion()], [a0], isVersionEqual), 1)[0];
}