// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Footer, Header } from 'components'; import PropTypes from 'prop-types'; import { CHANGE_LANGUAGE, CHANGE_NODE } from 'actions/config'; class App extends Component { constructor(props) { super(props); } static propTypes = { children: PropTypes.node.isRequired, location: PropTypes.object, handleWindowResize: PropTypes.func, router: PropTypes.object, isMobile: PropTypes.bool, // BEGIN ACTUAL languageSelection: PropTypes.object, changeLanguage: PropTypes.func, changeNode: PropTypes.func, nodeSelection: PropTypes.object }; componentWillMount() { let { handleWindowResize } = this.props; window.addEventListener('resize', handleWindowResize); } render() { let { children, // APP languageSelection, changeLanguage, changeNode, nodeSelection } = this.props; // let title = children.props.route.name; let headerProps = { changeLanguage, languageSelection, changeNode, nodeSelection }; return (