import * as React from 'react';
import classNames from 'classnames/bind';
import { Switch } from 'react-router';
import { Route, Redirect } from 'react-router-dom';
import Login from 'components/routes/Login';
import { config } from 'config/general';
import styleIdentifiers from './notLogged.scss';

const styles = classNames.bind(styleIdentifiers);

export interface NotLoggedProps {
  session: Record<string, any>;
}

interface NotLoggedState {}

export default class NotLogged extends React.Component<NotLoggedProps, NotLoggedState> {
  render(): JSX {
    return (
      <div className={styles('NotLogged')}>
        <div className={styles('content')}>
          <Switch>
            <Route exact path="/login" component={Login} />
          </Switch>
        </div>
      </div>
    );
  }
}
