decord/source/modules/video_calls/useIsStreamFocused.tsx

30 lines
908 B
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 12481
// Function ID: 12482
2026-07-20 16:05:17 +00:00
// Name: useIsStreamFocused
2026-08-15 05:55:55 +00:00
// Dependencies: [4773, 4544, 589, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsStreamFocused
2026-08-15 05:55:55 +00:00
// Module 12481 (useIsStreamFocused)
2026-07-29 08:29:29 +00:00
import getParticipants from "getParticipants";
2026-07-23 10:11:24 +00:00
import { isStreamParticipant } from "ParticipantTypes";
const require = arg1;
const result = require("initialize").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-07-29 08:29:29 +00:00
const items = [getParticipants];
const stateFromStores = _require(589).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-07-29 08:29:29 +00:00
selectedParticipant = outer1_2.getSelectedParticipant(tmp);
2026-07-20 16:05:17 +00:00
}
return selectedParticipant;
});
let tmp2 = null != stateFromStores;
if (tmp2) {
tmp2 = isStreamParticipant(stateFromStores);
}
return tmp2;
};