import { Routes, Route } from 'react-router-dom';

import MainLayout from './components/layout/MainLayout';
import SessionGuard from './components/auth/SessionGuard';
import { ToastContainer } from './components/common/Toast';
import { AlertModalContainer } from './components/common/AlertModal';

export default function App() {
  return (
    <SessionGuard>
    <ToastContainer />
    <AlertModalContainer />
    <Routes>
      <Route path="/*" element={<MainLayout />} />
    </Routes>
    </SessionGuard>
  );
}
