decord/source/modules/game_relationships/hooks/useIsGameFriends.tsx

28 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 13201
// Function ID: 13202
2026-07-20 16:05:17 +00:00
// Name: useIsGameFriends
// Dependencies: [32, 7760, 1074, 504, 5513, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsGameFriends
// Module 13201 (useIsGameFriends)
import _slicedToArray from "module_32" /* 32 */;
import GameRelationshipStore from "GameRelationshipStore" /* 7760 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
const require = fn;
const RelationshipTypes = fn(1074).RelationshipTypes;
const size = fn(2);
const result = size.fileFinishedImporting("modules/game_relationships/hooks/useIsGameFriends.tsx");
2026-07-20 16:05:17 +00:00
export const useIsGameFriends = function useIsGameFriends(id) {
_require = id;
let items = [GameRelationshipStore];
2026-07-20 16:05:17 +00:00
const items1 = [id];
return _slicedToArray(require("initialize").useStateFromStores(items, () => {
const gameRelationshipsForUserByType = GameRelationshipStore.getGameRelationshipsForUserByType(closure_0, RelationshipTypes.FRIEND);
const items = [gameRelationshipsForUserByType.length > 0, GameRelationshipStore.getGameRelationshipsVersion()];
2026-07-20 16:05:17 +00:00
return items;
}, items1, require("SecondaryIndexMapUtils").isVersionEqual), 1)[0];
2026-07-20 16:05:17 +00:00
};