import React, { Component, PropTypes } from 'react';
import { defineMessages, injectIntl } from 'react-intl';
import _ from 'lodash';
import ModalContainer from '../modal/container';
import NotificationsBarContainer from '../notifications-bar/container';
import AudioNotificationContainer from '../audio/audio-notification/container';
import AudioContainer from '../audio/container';
import ChatNotificationContainer from '../chat/notification/container';
import styles from './styles';
import cx from 'classnames';
const intlMessages = defineMessages({
userListLabel: {
id: 'app.userlist.Label',
description: 'Aria-label for Userlist Nav',
},
chatLabel: {
id: 'app.chat.Label',
description: 'Aria-label for Chat Section',
},
mediaLabel: {
id: 'app.media.Label',
description: 'Aria-label for Media Section',
},
actionsbarLabel: {
id: 'app.actionsBar.Label',
description: 'Aria-label for ActionsBar Section',
},
});
const propTypes = {
fontSize: PropTypes.string,
navbar: PropTypes.element,
sidebar: PropTypes.element,
media: PropTypes.element,
actionsbar: PropTypes.element,
};
const defaultProps = {
fontSize: '16px',
};
class App extends Component {
constructor(props) {
super(props);
this.state = {
compactUserList: false, //TODO: Change this on userlist resize (?)
};
}
componentDidMount() {
document.getElementsByTagName('html')[0].style.fontSize = this.props.fontSize;
}
renderNavBar() {
const { navbar } = this.props;
if (!navbar) return null;
return (