import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { AppLayout } from './components/layout/AppLayout';
import { UploadPage } from './pages/UploadPage';
import { ReportPage } from './pages/ReportPage';
import { AskPage } from './pages/AskPage';
import { ComparePage } from './pages/ComparePage';
import { CompaniesPage } from './pages/CompaniesPage';

export function App() {
  return (
    <BrowserRouter>
      <AppLayout>
        <Routes>
          <Route path="/" element={<Navigate to="/upload" replace />} />
          <Route path="/upload" element={<UploadPage />} />
          <Route path="/report" element={<ReportPage />} />
          <Route path="/ask" element={<AskPage />} />
          <Route path="/compare" element={<ComparePage />} />
          <Route path="/companies" element={<CompaniesPage />} />
        </Routes>
      </AppLayout>
    </BrowserRouter>
  );
}
