15 lines
634 B
TypeScript
15 lines
634 B
TypeScript
// Metro module 8929 (f8930).
|
|
import AuthenticationStore from "../../../stores/AuthenticationStore";
|
|
import VoiceStateStore from "../../../stores/VoiceStateStore";
|
|
import GameConsoleStore from "../GameConsoleStore";
|
|
import { useStateFromStores } from "../../../_bundle/Module589";
|
|
export default function useVoiceStateForRemoteSession() {
|
|
return useStateFromStores([AuthenticationStore, VoiceStateStore, GameConsoleStore], () => {
|
|
let r10 = VoiceStateStore.getVoiceStateForSession(AuthenticationStore.getId(), GameConsoleStore.getRemoteSessionId());
|
|
if (r10 == null) {
|
|
r10 = void 0;
|
|
}
|
|
return r10;
|
|
}, []);
|
|
};
|