// Metro module 16032 (f16033). import AuthenticationStore from "../../stores/AuthenticationStore"; import MediaEngineStore from "../../stores/MediaEngineStore"; import { VideoToggleState } from "../../Constants"; import { Features, MediaEngineContextTypes } from "../../_bundle/Module4250"; import { useStateFromStores } from "../../_bundle/Module589"; import AudioActionCreators from "../../actions/AudioActionCreators"; export default function useHideSelfVideo(a0, r3 = MediaEngineContextTypes.DEFAULT) { const DEFAULT = r3; const stateFromStores = useStateFromStores([AuthenticationStore], () => AuthenticationStore.getId()); const stateFromStores2 = useStateFromStores([MediaEngineStore], () => MediaEngineStore.supports(Features.DISABLE_VIDEO)); return [(a0 == null || a0 === stateFromStores) && stateFromStores2, useStateFromStores([MediaEngineStore], () => MediaEngineStore.isLocalVideoDisabled(stateFromStores, DEFAULT), [stateFromStores, DEFAULT]), function(a0) { AudioActionCreators.setDisableLocalVideo(stateFromStores, a0 ? VideoToggleState.DISABLED : VideoToggleState.MANUAL_ENABLED, DEFAULT); }]; };