import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import * as appPropTypes from '../appPropTypes'; import * as requestActions from '../../redux/requestActions'; const ListPeer = (props) => { const { peer, micConsumer, webcamConsumer, screenConsumer, onMuteMic, onUnmuteMic, onDisableWebcam, onEnableWebcam, onDisableScreen, onEnableScreen } = props; const micEnabled = ( Boolean(micConsumer) && !micConsumer.locallyPaused && !micConsumer.remotelyPaused ); const videoVisible = ( Boolean(webcamConsumer) && !webcamConsumer.locallyPaused && !webcamConsumer.remotelyPaused ); const screenVisible = ( Boolean(screenConsumer) && !screenConsumer.locallyPaused && !screenConsumer.remotelyPaused ); const picture = peer.picture || 'resources/images/avatar-empty.jpeg'; return (