decord/source/modules/video_calls/useIsStreamFocused.tsx

30 lines
944 B
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 10616
// Function ID: 82803
2026-07-20 16:05:17 +00:00
// Name: useIsStreamFocused
2026-07-23 10:11:24 +00:00
// Dependencies: [4143, 4148, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsStreamFocused
2026-07-23 10:11:24 +00:00
// Module 10616 (useIsStreamFocused)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { isStreamParticipant } from "ParticipantTypes";
const require = arg1;
const result = require("initialize").fileFinishedImporting("modules/video_calls/useIsStreamFocused.tsx");
2026-07-20 16:05:17 +00:00
export const useIsStreamFocused = function useIsStreamFocused(id) {
2026-07-23 10:11:24 +00:00
const _require = id;
const items = [_isNativeReflectConstruct];
const stateFromStores = _require(566).useStateFromStores(items, () => {
2026-07-20 16:05:17 +00:00
let selectedParticipant = null;
2026-07-23 10:11:24 +00:00
if (null != closure_0) {
selectedParticipant = outer1_2.getSelectedParticipant(closure_0);
2026-07-20 16:05:17 +00:00
}
return selectedParticipant;
});
let tmp2 = null != stateFromStores;
if (tmp2) {
tmp2 = isStreamParticipant(stateFromStores);
}
return tmp2;
};