I\'m trying to add condition to react routes object like this but it throws error,
const routes = (isAuthenticated) => [ { path: \'app\', element