import React from 'react';
import AuthLayout from '../src/components/layout/AuthLayout';
import Splash from '../src/components/pages/auth/Splash';
import Login from '../src/components/pages/auth/Login';

const showSplash = false;
const showLogin = true;

let layoutClass = 'login';

if (showSplash) {
  layoutClass = 'splash';
}

const login: React.FC = () => (
  <AuthLayout
    title="Entrar"
    mainClassName={layoutClass}
    splash={showSplash}
    auth
  >
    {showSplash ? <Splash /> : null}
    {showLogin && !showSplash ? <Login /> : null}
  </AuthLayout>
);

export default login;
