import { Routes, Route } from "react-router-dom";
import { MainLayout } from "@/modules/intelligence-ia/components/layout/MainLayout";
import Index from "./pages/Index";
import Integrations from "./pages/Integrations";
import Financas from "./pages/Financas";
import MeuPerfil from "./pages/MeuPerfil";
import NotFound from "./pages/NotFound";

// App do módulo Intelligence IA - funciona como subpath
// Não precisa de BrowserRouter, QueryClientProvider, TooltipProvider, Toaster ou Sonner
// pois já são fornecidos pelo App principal
const IntelligenceIAApp = () => {
  return (
    <MainLayout>
      <Routes>
        <Route index element={<Index />} />
        <Route path="integracoes" element={<Integrations />} />
        <Route path="financas" element={<Financas />} />
        <Route path="meu-perfil" element={<MeuPerfil />} />
        <Route path="*" element={<NotFound />} />
      </Routes>
    </MainLayout>
  );
};

export default IntelligenceIAApp;
