import React from 'react' import PropTypes from 'prop-types' import ScrollContainer from './ScrollContainer' import { WithTranslation, withTranslation } from 'react-i18next'; type AppLayoutInternalProps = { toolbar: React.ReactElement layerList: React.ReactElement layerEditor?: React.ReactElement map: React.ReactElement bottom?: React.ReactElement modals?: React.ReactNode } & WithTranslation; class AppLayoutInternal extends React.Component { static childContextTypes = { reactIconBase: PropTypes.object } getChildContext() { return { reactIconBase: { size: 14 } } } render() { document.body.dir = this.props.i18n.dir(); return
{this.props.toolbar}
{this.props.layerList}
{this.props.layerEditor}
{this.props.map}
{this.props.bottom &&
{this.props.bottom}
} {this.props.modals}
} } const AppLayout = withTranslation()(AppLayoutInternal); export default AppLayout;