import React from "react";
import { BrowserRouter } from "react-router-dom";
import { ThemeProvider } from "./contexts/ThemeContext";
import { AuthProvider } from "./contexts/AuthContext";
import AppRoutes from "./routes/AppRoutes";
import { RootStoreProvider } from "./contexts/RootStore";


const App = () => {
  return (
    <BrowserRouter>
      <AuthProvider>
        <RootStoreProvider>
          <ThemeProvider>
        <AppRoutes />
          </ThemeProvider>
        </RootStoreProvider>
      </AuthProvider>
    </BrowserRouter>
  );
};

export default App;
