import * as React from 'react'; import RightBar from '../rightbar/RightBar'; import { Component } from 'react'; import classNames from 'classnames'; import { inject } from 'mobx-react'; import { AppStore } from '../../../AppStore'; import PortalFooter from '../../../appShell/App/PortalFooter'; interface IPageLayout { rightBar?: any; className?: string; noMargin?: boolean; appStore?: AppStore; hideFooter?: boolean; } @inject('appStore') export class PageLayout extends React.Component { render() { const noMargin = this.props.noMargin ? 'noMargin' : ''; return (
{this.props.children}
{this.props.rightBar && (
{this.props.rightBar}
)}
{!this.props.hideFooter && ( )}
); } }