import { createRoot } from "react-dom/client";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { Provider } from "react-redux";
import { store } from "./store/index.js";
import Modal from 'react-modal';
import RootApp from "./App";
import "./index.scss";

export const queryClient = new QueryClient();

createRoot(document.getElementById("root")!).render(
  <QueryClientProvider client={queryClient}>
    <Provider store={store}>
      <RootApp />
    </Provider>
  </QueryClientProvider>
);

Modal.setAppElement('#root'); 