29 lines
847 B
TypeScript
29 lines
847 B
TypeScript
// Metro module 10239 (f10240).
|
|
import AuthenticationStore from "../../stores/AuthenticationStore";
|
|
import VoiceStateStore from "../../stores/VoiceStateStore";
|
|
import { useStateFromStores } from "../../_bundle/Module589";
|
|
function $mk84227($env) {
|
|
return () => {
|
|
const r0 = $env.$parent;
|
|
return r0[3].isInChannel($env[0], r0[2].getId());
|
|
};
|
|
}
|
|
let env6828 = {};
|
|
export function useIsConnectedToVoiceChannel(a0) {
|
|
const id = a0?.id;
|
|
let env17793;
|
|
const r9 = env17793 = {
|
|
$parent: env6828
|
|
};
|
|
env17793[0] = id;
|
|
return useStateFromStores([VoiceStateStore, AuthenticationStore], $mk84227(r9));
|
|
}
|
|
export function useIsConnectedToVoiceChannelForId(a0) {
|
|
let env17792;
|
|
const r1 = env17792 = {
|
|
$parent: env6828
|
|
};
|
|
env17792[0] = a0;
|
|
return useStateFromStores([VoiceStateStore, AuthenticationStore], $mk84227(r1));
|
|
}
|