import React from 'react'; import { Routes, Route, Navigate } from 'react-router-dom'; import { Box, Container } from '@mui/material'; import { AuthProvider } from './contexts/AuthContext'; import { AgentProvider } from './contexts/AgentContext'; import ProtectedRoute from './components/ProtectedRoute'; // Pages import Login from './pages/Login'; import Register from './pages/Register'; import Dashboard from './pages/Dashboard'; import AgentCreation from './pages/AgentCreation'; import CompilationProgress from './pages/CompilationProgress'; import AgentReady from './pages/AgentReady'; import Chat from './pages/Chat'; import AgentList from './pages/AgentList'; import Landing from './pages/Landing'; function App() { return ( {/* Background decorative elements */} {/* Main Content */} {/* Public Routes */} } /> } /> } /> {/* Protected Routes */} }> } /> } /> } /> } /> } /> } /> {/* Catch all */} } /> ); } export default App;