import React from "react"; import ScrollContainer from "./ScrollContainer"; import { type WithTranslation, withTranslation } from "react-i18next"; import { IconContext } from "react-icons"; type AppLayoutInternalProps = { toolbar: React.ReactElement layerList: React.ReactElement layerEditor?: React.ReactElement codeEditor?: React.ReactElement map: React.ReactElement bottom?: React.ReactElement modals?: React.ReactNode } & WithTranslation; class AppLayoutInternal extends React.Component { render() { document.body.dir = this.props.i18n.dir(); return
{this.props.toolbar}
{this.props.codeEditor &&
{this.props.codeEditor}
} {!this.props.codeEditor && <>
{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;