18 lines
937 B
TypeScript
18 lines
937 B
TypeScript
// Metro module 7762 (f7763).
|
|
import CallStore from "../../../stores/CallStore";
|
|
import ChannelRTCStore from "../ChannelRTCStore";
|
|
import { ParticipantTypes } from "../CallConstants";
|
|
import { useStateFromStores } from "../../../_bundle/Module589";
|
|
let $mk79286 = function() {
|
|
return (a0) => a0.type === ParticipantTypes.USER && !a0.ringing;
|
|
};
|
|
export default function useIsCallActive(a0, a1) {
|
|
return useStateFromStores([CallStore, ChannelRTCStore], () => CallStore.isCallActive(a0, a1) && ChannelRTCStore.getParticipants(a0).some($mk79286()), [a0, a1]);
|
|
};
|
|
export function checkIsCallActive(a0, a1) {
|
|
return CallStore.isCallActive(a0, a1) && ChannelRTCStore.getParticipants(a0).some($mk79286());
|
|
}
|
|
export function useIsCallActiveNullable(a0, a1) {
|
|
return useStateFromStores([CallStore, ChannelRTCStore], () => a0 != null && (CallStore.isCallActive(a0, a1) && ChannelRTCStore.getParticipants(a0).some($mk79286())), [a0, a1]);
|
|
}
|