34 lines
1 KiB
TypeScript
34 lines
1 KiB
TypeScript
// Module ID: 8935
|
|
// Function ID: 8936
|
|
// Name: useIsStreamFocused
|
|
// Dependencies: [4852, 4857, 504, 2]
|
|
// Exports: useIsStreamFocused
|
|
|
|
// Module 8935 (useIsStreamFocused)
|
|
import CallConstants from "CallConstants" /* 4857 */;
|
|
import ChannelRTCStore from "ChannelRTCStore" /* 4852 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const require = globalThis.__r;
|
|
let _require;
|
|
|
|
const isStreamParticipant = CallConstants.isStreamParticipant;
|
|
const result = size.fileFinishedImporting("modules/video_calls/useIsStreamFocused.tsx");
|
|
|
|
export const useIsStreamFocused = function useIsStreamFocused(id) {
|
|
_require = id;
|
|
const items = [ChannelRTCStore];
|
|
const obj = require("get initialized");
|
|
const stateFromStores = obj.useStateFromStores(items, () => {
|
|
let selectedParticipant = null;
|
|
if (null != id) {
|
|
selectedParticipant = ChannelRTCStore.getSelectedParticipant(tmp);
|
|
}
|
|
return selectedParticipant;
|
|
});
|
|
let tmp2 = null != stateFromStores;
|
|
if (tmp2) {
|
|
tmp2 = isStreamParticipant(stateFromStores);
|
|
}
|
|
return tmp2;
|
|
};
|