decord/source/modules/game_console/hooks/useIsRemote.tsx

23 lines
653 B
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5652
2026-07-24 07:16:23 +00:00
// Function ID: 48348
2026-07-20 16:05:17 +00:00
// Name: useIsRemote
2026-07-23 10:11:24 +00:00
// Dependencies: [4144, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-23 10:11:24 +00:00
// Module 5652 (useIsRemote)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
const result = require("set").fileFinishedImporting("modules/game_console/hooks/useIsRemote.tsx");
2026-07-20 16:05:17 +00:00
export default function useIsRemote() {
2026-07-23 10:11:24 +00:00
const items = [_isNativeReflectConstruct];
return require(566) /* initialize */.useStateFromStores(items, () => {
let tmp = null != outer1_2.getRemoteSessionId();
2026-07-20 16:05:17 +00:00
if (!tmp) {
2026-07-23 10:11:24 +00:00
tmp = null != outer1_2.getAwaitingRemoteSessionInfo();
2026-07-20 16:05:17 +00:00
}
return tmp;
});
};