import React from 'react'; import { Redirect, Route, Switch, Link } from 'react-router-dom'; import BodyClassName from 'react-body-classname'; import authenticationRoutes from 'routes/authentication'; export default function AuthenticationWrapper({ isAuthenticated =false, ...rest }) { const to = {pathname: '/dashboard/homepage'}; return ( { (isAuthenticated) ? () : (
← Go to bigcapital.com
{ authenticationRoutes.map((route, index) => ( ))}
) }
); }