29 lines
908 B
TypeScript
29 lines
908 B
TypeScript
// Module ID: 10617
|
|
// Function ID: 10618
|
|
// Name: useIsStreamFocused
|
|
// Dependencies: [4268, 4273, 589, 2]
|
|
// Exports: useIsStreamFocused
|
|
|
|
// Module 10617 (useIsStreamFocused)
|
|
import getParticipants from "getParticipants";
|
|
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 = [getParticipants];
|
|
const stateFromStores = _require(589).useStateFromStores(items, () => {
|
|
let selectedParticipant = null;
|
|
if (null != closure_0) {
|
|
selectedParticipant = outer1_2.getSelectedParticipant(tmp);
|
|
}
|
|
return selectedParticipant;
|
|
});
|
|
let tmp2 = null != stateFromStores;
|
|
if (tmp2) {
|
|
tmp2 = isStreamParticipant(stateFromStores);
|
|
}
|
|
return tmp2;
|
|
};
|