import React from 'react'; import { RouteContext } from '@ant-design/pro-layout'; import { PageHeader, Typography } from 'antd'; import styles from './index.less'; import { GridContent } from '@ant-design/pro-layout'; interface IPageHeaderWrapperProps { content?: React.ReactNode; title?: React.ReactNode; extraContent?: React.ReactNode; } const PageHeaderWrapper: React.SFC = ({ children, title, content, extraContent, ...restProps }) => ( {value => (
{title || value.title} } {...restProps} >
{content &&
{content}
} {extraContent &&
{extraContent}
}
{children ? (
{children}
) : null}
)}
); export default PageHeaderWrapper;