decord/source/modules/game_relationships/hooks/useIsGameFriends.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

27 lines
1.1 KiB
TypeScript

// Module ID: 13201
// Function ID: 13202
// Name: useIsGameFriends
// Dependencies: [32, 7760, 1074, 504, 5513, 2]
// Exports: useIsGameFriends
// Module 13201 (useIsGameFriends)
import _slicedToArray from "module_32" /* 32 */;
import GameRelationshipStore from "GameRelationshipStore" /* 7760 */;
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");
export const useIsGameFriends = function useIsGameFriends(id) {
_require = id;
let items = [GameRelationshipStore];
const items1 = [id];
return _slicedToArray(require("initialize").useStateFromStores(items, () => {
const gameRelationshipsForUserByType = GameRelationshipStore.getGameRelationshipsForUserByType(closure_0, RelationshipTypes.FRIEND);
const items = [gameRelationshipsForUserByType.length > 0, GameRelationshipStore.getGameRelationshipsVersion()];
return items;
}, items1, require("SecondaryIndexMapUtils").isVersionEqual), 1)[0];
};