import React, { Component } from 'react'; import { connect } from 'react-redux'; import AudioOnlyLabel from './AudioOnlyLabel'; /** * Component responsible for displaying a label that indicates some state of the * current conference. The AudioOnlyLabel component will be displayed when the * conference is in audio only mode. */ export class StatusLabel extends Component { /** * StatusLabel component's property types. * * @static */ static propTypes = { /** * The redux store representation of the current conference. */ _conference: React.PropTypes.object } /** * Implements React's {@link Component#render()}. * * @inheritdoc * @returns {ReactElement|null} */ render() { if (!this.props._conference.audioOnly) { return null; } return (