decord/alpha/source/modules/video_calls/useIsStreamFocused.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

32 lines
961 B
TypeScript

// Module ID: 9826
// Function ID: 9827
// Name: useIsStreamFocused
// Dependencies: [4845, 4850, 504, 2]
// Exports: useIsStreamFocused
// Module 9826 (useIsStreamFocused)
import ChannelRTCStore from "ChannelRTCStore" /* 4845 */;
const require = globalThis.__r;
const require = fn;
const isStreamParticipant = fn(4850).isStreamParticipant;
const size = fn(2);
const result = size.fileFinishedImporting("modules/video_calls/useIsStreamFocused.tsx");
export const useIsStreamFocused = function useIsStreamFocused(id) {
_require = id;
const items = [ChannelRTCStore];
const stateFromStores = require("initialize").useStateFromStores(items, () => {
let selectedParticipant = null;
if (null != closure_0) {
selectedParticipant = ChannelRTCStore.getSelectedParticipant(tmp);
}
return selectedParticipant;
});
let tmp2 = null != stateFromStores;
if (tmp2) {
tmp2 = isStreamParticipant(stateFromStores);
}
return tmp2;
};