import { Box, ErrorBoundary, Grid, Modal, Routes, } from '@elandamor/tra-components'; import { Global, ThemeProvider } from '@elandamor/tra-theme'; import React, { FC } from 'react'; import { Breadcrumbs } from '../../contexts/BreadcrumbsProvider.context'; import { useAuthentication } from '../../hooks'; import Login from '../../pages/Authentication/Login'; import { Footer, Header } from './elements'; import { routes } from './routes'; const App: FC = () => { const { isAuthenticated } = useAuthentication(); const renderApp = () => { if (!isAuthenticated) { return ( ); } return (