decord/source/modules/video_calls/useIsStreamFocused.tsx

30 lines
911 B
TypeScript
Raw Normal View History

// Module ID: 9583
// Function ID: 9584
2026-07-20 16:05:17 +00:00
// Name: useIsStreamFocused
// Dependencies: [4497, 4502, 586, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsStreamFocused
// Module 9583 (useIsStreamFocused)
import closure_2 from "getParticipants" /* 4497 */;
import { isStreamParticipant } from "ParticipantTypes" /* 4502 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/video_calls/useIsStreamFocused.tsx");
2026-07-20 16:05:17 +00:00
export const useIsStreamFocused = function useIsStreamFocused(id) {
2026-07-23 10:11:24 +00:00
const _require = id;
2026-08-24 06:08:38 +00:00
const items = [closure_2];
2026-09-02 09:53:35 +00:00
const stateFromStores = _require(586).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) {
2026-08-24 06:08:38 +00:00
selectedParticipant = closure_1_2.getSelectedParticipant(tmp);
2026-07-20 16:05:17 +00:00
}
return selectedParticipant;
});
let tmp2 = null != stateFromStores;
if (tmp2) {
tmp2 = isStreamParticipant(stateFromStores);
}
return tmp2;
};