asb_cloud_front/src/components/LayoutPortal.jsx

20 lines
457 B
React
Raw Normal View History

import {Layout} from 'antd'
import PageHeader from './PageHeader'
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>
return (
<Content>
<PageHeader title={title}/>
2021-07-22 12:06:27 +05:00
{content}
</Content>)
}