asb_cloud_front/src/components/LayoutPortal.jsx
2021-07-22 12:06:27 +05:00

20 lines
457 B
JavaScript

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>)
}