29 lines
944 B
TypeScript
29 lines
944 B
TypeScript
// Module ID: 10609
|
|
// Function ID: 82682
|
|
// Name: useIsStreamFocused
|
|
// Dependencies: [4144, 4149, 566, 2]
|
|
// Exports: useIsStreamFocused
|
|
|
|
// Module 10609 (useIsStreamFocused)
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
import { isStreamParticipant } from "ParticipantTypes";
|
|
|
|
const require = arg1;
|
|
const result = require("initialize").fileFinishedImporting("modules/video_calls/useIsStreamFocused.tsx");
|
|
|
|
export const useIsStreamFocused = function useIsStreamFocused(id) {
|
|
const _require = id;
|
|
const items = [_isNativeReflectConstruct];
|
|
const stateFromStores = _require(566).useStateFromStores(items, () => {
|
|
let selectedParticipant = null;
|
|
if (null != closure_0) {
|
|
selectedParticipant = outer1_2.getSelectedParticipant(closure_0);
|
|
}
|
|
return selectedParticipant;
|
|
});
|
|
let tmp2 = null != stateFromStores;
|
|
if (tmp2) {
|
|
tmp2 = isStreamParticipant(stateFromStores);
|
|
}
|
|
return tmp2;
|
|
};
|