import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './styles'; import MessageForm from './message-form/component'; import MessageList from './message-list/component'; import Icon from '../icon/component'; const ELEMENT_ID = 'chat-messages'; export default class Chat extends Component { constructor(props) { super(props); } componentDidMount() { //to let the whiteboard know that the presentation area's size has changed window.dispatchEvent(new Event('resize')); } componentWillUnmount() { //to let the whiteboard know that the presentation area's size has changed window.dispatchEvent(new Event('resize')); } render() { const { chatID, chatName, title, messages, scrollPosition, hasUnreadMessages, lastReadMessageTime, isChatLocked, actions, } = this.props; return (
{title}
); } }