import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import { ApolloProvider } from "@apollo/client/react";
import { ConfigProvider, App as AntApp } from "antd";
import App from "./App";
import { client } from "./api/apollo";
import { themeConfig } from "./theme/themeConfig";
import "antd/dist/reset.css";

ReactDOM.createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    <ApolloProvider client={client}>
      <ConfigProvider theme={themeConfig}>
        <AntApp>
        <BrowserRouter>
          <App />
        </BrowserRouter>
        </AntApp>
      </ConfigProvider>
    </ApolloProvider>
  </React.StrictMode>
);