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, content, title }) => ( {value => (
{title || value.title} } > {content} {children ?
{children}
: null}
)}
); export default PageHeaderWrapper;