import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './styles'; import { defineMessages, injectIntl } from 'react-intl'; import MessageForm from './message-form/component'; import MessageList from './message-list/component'; import Icon from '../icon/component'; const ELEMENT_ID = 'chat-messages'; const intlMessages = defineMessages({ closeChatLabel: { id: 'app.chat.closeChatLabel', description: 'aria-label for closing chat button', }, hideChatLabel: { id: 'app.chat.hideChatLabel', description: 'aria-label for hiding chat button', }, }); class Chat extends Component { constructor(props) { super(props); } render() { const { chatID, chatName, title, messages, scrollPosition, hasUnreadMessages, lastReadMessageTime, partnerIsLoggedOut, isChatLocked, minMessageLength, maxMessageLength, actions, intl, } = this.props; return (
{title}
{ ((this.props.chatID == 'public') ? null : actions.handleClosePrivateChat(chatID)}/> ) }
); } } export default injectIntl(Chat);