import {Layout} from 'antd'
import PageHeader from './PageHeader'

const {Content} = Layout

export default function LayoutPortal({title, noSheet, children}) {
  const content = noSheet 
    ? <Layout>{children}</Layout>
    : <Layout>
        <Content className="site-layout-background sheet">
          {children}
        </Content>
      </Layout>

  return (     
      <Content>
        <PageHeader title={title}/>
        {content}
      </Content>)
}