import React, { Component } from 'react' import PropTypes from 'prop-types' class Participant extends Component { render() { const { conversationLive, mapperIsLive, isParticipating, isPending, id, self, image, username, color } = this.props return (
{username} {self ? '(me)' : ''}
{!self && !conversationLive &&
) } } Participant.propTypes = { conversationLive: PropTypes.bool, mapperIsLive: PropTypes.bool, isParticipating: PropTypes.bool, isPending: PropTypes.bool, color: PropTypes.string, // css color id: PropTypes.number, image: PropTypes.string, // image url self: PropTypes.bool, username: PropTypes.string, inviteACall: PropTypes.func, inviteToJoin: PropTypes.func } export default Participant