{"size": 845, "ext": "js", "max_stars_repo_path": "packages/react-scripts/template/src/App/Auth/Auth.js", "max_stars_repo_name": "conapps/conatel-create-react-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/react-scripts/template/src/App/Auth/Auth.js", "max_issues_repo_name": "conapps/conatel-create-react-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/react-scripts/template/src/App/Auth/Auth.js", "max_forks_repo_name": "conapps/conatel-create-react-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.1666666667, "max_line_length": 80, "alphanum_fraction": 0.6307692308}
import './Auth.css';
import React from 'react';
import { Redirect, Switch, Route } from 'react-router-dom';
import EnhancedLogin from './Login/EnhancedLogin';
import EnhancedForgotPassword from './ForgotPassword/EnhancedForgotPassword';
import EnhancedRecoverPassword from './RecoverPassword/EnhancedRecoverPassword';

var Auth = ({ isAuthenticated = true }) =>
  isAuthenticated === false ? (
    <div className="Auth">
      <Switch>
        <Route exact path="/auth/login" component={EnhancedLogin} />
        <Route
          exact
          path="/auth/forgot-password"
          component={EnhancedForgotPassword}
        />
        <Route
          exact
          path="/auth/recover-password"
          component={EnhancedRecoverPassword}
        />
      </Switch>
    </div>
  ) : (
    <Redirect to="/" />
  );

export default Auth;
