forked from ddrilling/asb_cloud_front
23 lines
571 B
TypeScript
23 lines
571 B
TypeScript
import { Layout } from 'antd'
|
|
import PageHeader from '../PageHeader'
|
|
import WellTreeSelector from '../WellTreeSelector'
|
|
|
|
type LayoutPortalProps = {
|
|
title?: string
|
|
noSheet?: boolean
|
|
[props: string]: any
|
|
}
|
|
|
|
export const LayoutPortal: React.FC<LayoutPortalProps> = ({title, noSheet, ...props}) => (
|
|
<Layout.Content>
|
|
<PageHeader title={title}>
|
|
<WellTreeSelector />
|
|
</PageHeader>
|
|
<Layout>
|
|
{noSheet ? props.children : (
|
|
<Layout.Content className={'site-layout-background sheet'} {...props}/>
|
|
)}
|
|
</Layout>
|
|
</Layout.Content>
|
|
)
|