import React from 'react'; import { FormattedMessage } from 'umi/locale'; import { Link } from 'dva/router'; import PageHeader from '../../components/PageHeader'; import GridContent from './GridContent'; import styles from './PageHeaderLayout.less'; import MenuContext from './MenuContext'; const PageHeaderLayout = ({ children, wrapperClassName, top, ...restProps }) => (
{top} {value => { return ( } {...value} key="pageheader" {...restProps} linkElement={Link} itemRender={item => { if (item.locale) { return ; } return item.name; }} /> ); }} {children ? (
{children}
) : null}
); export default PageHeaderLayout;