import React from 'react'; import { connect } from 'react-redux'; import classNames from 'classnames'; import * as appPropTypes from '../../appPropTypes'; import { withRoomContext } from '../../../RoomContext'; import PropTypes from 'prop-types'; import ListPeer from './ListPeer'; import ListMe from './ListMe'; const ParticipantList = ({ roomClient, advancedMode, peers, selectedPeerName, spotlights }) => (


); ParticipantList.propTypes = { roomClient : PropTypes.any.isRequired, advancedMode : PropTypes.bool, peers : PropTypes.arrayOf(appPropTypes.Peer).isRequired, selectedPeerName : PropTypes.string, spotlights : PropTypes.array.isRequired }; const mapStateToProps = (state) => { const peersArray = Object.values(state.peers); return { peers : peersArray, selectedPeerName : state.room.selectedPeerName, spotlights : state.room.spotlights }; }; const ParticipantListContainer = withRoomContext(connect( mapStateToProps )(ParticipantList)); export default ParticipantListContainer;