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