import React, { Component, PropTypes } from 'react'; import styles from './styles.scss'; import Button from '../button/component'; import RecordButton from './recordbutton/component'; import SettingsDropdown from '../dropdown/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() { this.props.toggleUserList(); } render() { const { presentationTitle, beingRecorded } = this.props; document.title = presentationTitle; return (

{presentationTitle}

|
); } } NavBar.propTypes = propTypes; NavBar.defaultProps = defaultProps; export default NavBar;