import { Route } from 'dva/router'
import AuthLayout from './authLayout'

export default ({ component: Component, ...rest }) => (
    <Route
        {...rest}
        render={props =>{
            return <AuthLayout location={props.location}>
                <Component {...props} />
            </AuthLayout>
        }}
    />
);