// @flow import React from 'react'; import { Video } from '../../../media'; import { connect } from '../../../redux'; import { getLocalVideoTrack } from '../../../tracks'; export type Props = { /** * Flag controlling whether the video should be flipped or not. */ flipVideo: boolean, /** * Flag signaling the visibility of camera preview. */ videoMuted: boolean, /** * The JitsiLocalTrack to display. */ videoTrack: ?Object, }; /** * Component showing the video preview and device status. * * @param {Props} props - The props of the component. * @returns {ReactElement} */ function Preview(props: Props) { const { videoMuted, videoTrack, flipVideo } = props; const className = flipVideo ? 'flipVideoX' : ''; if (!videoMuted && videoTrack) { return (