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