import React from 'react' import PropTypes from 'prop-types' import ScrollContainer from './ScrollContainer' class AppLayout extends React.Component { static propTypes = { toolbar: PropTypes.element.isRequired, layerList: PropTypes.element.isRequired, layerEditor: PropTypes.element, map: PropTypes.element.isRequired, bottom: PropTypes.element, modals: PropTypes.node, } static childContextTypes = { reactIconBase: PropTypes.object } getChildContext() { return { reactIconBase: { size: 14 } } } render() { return
{this.props.toolbar}
{this.props.layerList}
{this.props.layerEditor}
{this.props.map} {this.props.bottom &&
{this.props.bottom}
} {this.props.modals}
} } export default AppLayout