_layout.js 454 Bytes
Newer Older
xiaohu's avatar
xiaohu committed
1 2 3
import React from 'react';
import { getRouterData } from 'common/router';
import { getMenuData } from 'common/menu';
愚道's avatar
愚道 committed
4
import UserLayout from '../layouts/UserLayout';
xiaohu's avatar
xiaohu committed
5 6 7 8 9 10 11 12 13 14 15

export default props => {
  const { children, location } = props;
  const routerData = getRouterData({});
  const menuData = getMenuData({});
  return (
    <UserLayout routerData={routerData} menuData={menuData} location={location} {...props}>
      {children}
    </UserLayout>
  );
};