import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getParticipantById } from '../../base/participants'; /** * React {@code Component} for displaying the current presence status of a * participant. * * @extends Component */ class PresenceLabel extends Component { /** * The default values for {@code PresenceLabel} component's property types. * * @static */ static defaultProps = { _presence: '' }; /** * {@code PresenceLabel} component's property types. * * @static */ static propTypes = { /** * The current present status associated with the passed in * participantID prop. */ _presence: React.PropTypes.string, /** * The ID of the participant whose presence status shoul display. */ participantID: React.PropTypes.string }; /** * Implements React's {@link Component#render()}. * * @inheritdoc * @returns {ReactElement} */ render() { const { _presence } = this.props; return (