import React, { Component, PropTypes } from 'react'; import styles from './styles.scss'; import { withRouter } from 'react-router'; import Button from '../button/component'; import RecordButton from './recordbutton/component'; const propTypes = { presentationTitle: PropTypes.string.isRequired, hasUnreadMessages: PropTypes.bool.isRequired, beingRecorded: PropTypes.bool.isRequired, }; const defaultProps = { presentationTitle: 'Default Room Title', hasUnreadMessages: false, beingRecorded: false, }; class NavBar extends Component { constructor(props) { super(props); this.handleToggleUserList = this.handleToggleUserList.bind(this); } handleToggleUserList() { /* TODO: Find out how to get the current route here so we can change the click behavior */ this.props.router.push('/users'); } render() { const { presentationTitle, beingRecorded } = this.props; document.title = presentationTitle; return (