decord/source/modules/video_calls/useIsStreamFocused.tsx

33 lines
961 B
TypeScript
Raw Normal View History

// Module ID: 9686
// Function ID: 9687
2026-07-20 16:05:17 +00:00
// Name: useIsStreamFocused
// Dependencies: [4590, 4595, 504, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsStreamFocused
// Module 9686 (useIsStreamFocused)
import ChannelRTCStore from "ChannelRTCStore" /* 4590 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
const require = fn;
const isStreamParticipant = fn(4595).isStreamParticipant;
const size = fn(2);
const result = size.fileFinishedImporting("modules/video_calls/useIsStreamFocused.tsx");
2026-07-20 16:05:17 +00:00
export const useIsStreamFocused = function useIsStreamFocused(id) {
_require = id;
const items = [ChannelRTCStore];
const stateFromStores = require("initialize").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 = ChannelRTCStore.getSelectedParticipant(tmp);
2026-07-20 16:05:17 +00:00
}
return selectedParticipant;
});
let tmp2 = null != stateFromStores;
if (tmp2) {
tmp2 = isStreamParticipant(stateFromStores);
}
return tmp2;
};