import * as React from "react"; import { withRouter, RouteComponentProps } from "react-router-dom"; import HeaderView from "./HeaderView"; import FooterView from "./FooterView"; type P = RouteComponentProps & { hideMenu?: boolean; }; type S = {}; class MainLayout extends React.Component { render() { const { hideMenu } = this.props; return ( <>
{this.props.children}
); } } export default withRouter(MainLayout);