2021-05-31 15:02:35 +05:00
|
|
|
import {Layout} from 'antd'
|
2021-07-22 11:43:58 +05:00
|
|
|
import PageHeader from './PageHeader'
|
2021-05-31 15:02:35 +05:00
|
|
|
|
|
|
|
const {Content} = Layout
|
|
|
|
|
2021-07-22 12:06:27 +05:00
|
|
|
export default function LayoutPortal({title, noSheet, children}) {
|
|
|
|
const content = noSheet
|
|
|
|
? <Layout>{children}</Layout>
|
|
|
|
: <Layout>
|
|
|
|
<Content className="site-layout-background sheet">
|
|
|
|
{children}
|
|
|
|
</Content>
|
|
|
|
</Layout>
|
|
|
|
|
2021-05-31 15:02:35 +05:00
|
|
|
return (
|
|
|
|
<Content>
|
|
|
|
<PageHeader title={title}/>
|
2021-07-22 12:06:27 +05:00
|
|
|
{content}
|
2021-05-31 15:02:35 +05:00
|
|
|
</Content>)
|
|
|
|
}
|