9 lines
482 B
TypeScript
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);
|
|
}
|