import { createRoot } from "react-dom/client";
import App from "./App";
import "../src/styles/globals.css";
import { BrowserRouter } from "react-router-dom";
import ScrollToTop from "./components/ScrollToTop";

import { Provider } from "react-redux";
import { store } from "./redux/store/Store";

createRoot(document.getElementById("root")!).render(
  <Provider store={store}>
    <BrowserRouter>
      <ScrollToTop />
      <App />
    </BrowserRouter>
  </Provider>
);