import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import { Loader } from 'app/common' import { capitalize } from 'app/utils' import * as graphActions from '../../graph/graph.actions' import * as pageActions from '../page.actions' function PageHeader(props) { return (
{"◁"} {props.site.siteTitle} {props.building && (
{capitalize(props.building)}ing...
)}
) } const mapStateToProps = (state) => ({ // auth: state.auth, site: state.site, graph: state.graph.show.res, page: state.page.show.res, building: state.graph.editor.building, router: state.router, // isAuthenticated: state.auth.isAuthenticated, }) const mapDispatchToProps = (dispatch) => ({ graphActions: bindActionCreators({ ...graphActions }, dispatch), pageActions: bindActionCreators({ ...pageActions }, dispatch), }) export default connect(mapStateToProps, mapDispatchToProps)(PageHeader)