asb_cloud_front/src/components/Layout/LayoutPortal.tsx

23 lines
571 B
TypeScript
Raw Normal View History

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