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