import React from 'react'; import pluralize from 'pluralize'; import { IndexLink } from 'react-router'; import { Menu, MenuItem } from 'react-toolbox'; import AppBar from 'react-toolbox/lib/app_bar'; import FindBar from '../FindBar/FindBar'; import styles from './AppHeader.css'; export default class AppHeader extends React.Component { state = { createMenuActive: false }; handleCreatePostClick = collectionName => { const { onCreateEntryClick } = this.props; if (onCreateEntryClick) { onCreateEntryClick(collectionName); } }; handleCreateButtonClick = () => { this.setState({ createMenuActive: true }); }; handleCreateMenuHide = () => { this.setState({ createMenuActive: false }); }; render() { const { collections, commands, defaultCommands, runCommand, toggleNavDrawer } = this.props; const { createMenuActive } = this.state; return ( Dashboard { collections.valueSeq().map(collection => ) } ); } }