/* @flow */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { translate } from '../../base/i18n'; import { getAvatarURL, getParticipants } from '../../base/participants'; import ContactListItem from './ContactListItem'; declare var interfaceConfig: Object; /** * React component for showing a list of current conference participants. * * @extends Component */ class ContactListPanel extends Component { /** * Default values for {@code ContactListPanel} component's properties. * * @static */ static propTypes = { /** * The participants to show in the contact list. */ _participants: PropTypes.array, /** * Whether or not participant avatars should be displayed. */ _showAvatars: PropTypes.bool, /** * Invoked to obtain translated strings. */ t: PropTypes.func }; /** * Implements React's {@link Component#render()}. * * @inheritdoc */ render() { const { _participants, t } = this.props; return (