Files
discord-decomp/modules/video_calls/useIsStreamFocused.tsx
T
2026-11-01 12:12:55 +02:00

9 lines
482 B
TypeScript

// Metro module 10672 (f10673).
import ChannelRTCStore from "../calls/ChannelRTCStore";
import { isStreamParticipant } from "../calls/CallConstants";
import { useStateFromStores } from "../../_bundle/Module589";
export function useIsStreamFocused(c18177_0) {
const stateFromStores = useStateFromStores([ChannelRTCStore], () => c18177_0 != null ? ChannelRTCStore.getSelectedParticipant(c18177_0) : null);
return stateFromStores != null && isStreamParticipant(stateFromStores);
}