import { BrowserRouter as Router } from "react-router-dom";
import AppRoutes from "./routes/AppRoutes";
import { useEffect } from "react";
import { socketListeners } from "./socket/socketListeners";
import socket from "./socket/socketSetup";

function App() {
  useEffect(() => {
    socketListeners(socket);
  }, []);

  return (
    <div>
      <Router>
        <AppRoutes />
      </Router>
    </div>
  );
}

export default App;
