import { StrictMode } from "react";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import { createBrowserRouter } from "react-router-dom";

import "@fontsource/inter";

import { App } from "./features/app/App";
import getRoutes from "./routing/routes";
import { store } from "./store/store";

const router = createBrowserRouter(getRoutes());

ReactDOM.createRoot(document.getElementById("root")).render(
  <StrictMode>
    <Provider store={store}>
      <App router={router} />
    </Provider>
  </StrictMode>
);
