import React, { PropTypes, Component } from 'react' import Unread from './Unread' import Participant from './Participant' import Message from './Message' class MapChat extends Component { constructor(props) { super(props) this.state = { messageText: '' } } handleChange = key => e => { this.setState({ [key]: e.target.value }) } handleTextareaKeyUp = e => { if (e.which === 13) { e.preventDefault() const text = this.state.messageText this.props.handleInputMessage(text) this.setState({ messageText: '' }) } } render = () => { const rightOffset = this.props.isOpen ? '-300px' : '0' const { videosShowing, cursorsShowing, alertSound } = this.props return (
PARTICIPANTS
LIVE LEAVE JOIN
{this.props.participants.map(participant => { return })}
CHAT
Chat
{this.props.messages.map(message => { return })}