import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import { BrowserRouter } from "react-router-dom";
import App from "./App";
import { AuthProvider } from "./context/AuthContext";
import zhCN from "antd/locale/zh_CN";
import { ConfigProvider } from "antd";
import { ProConfigProvider } from "@ant-design/pro-components";

createRoot(document.getElementById('root')).render(
    <BrowserRouter>
      <AuthProvider>
      <ConfigProvider locale={zhCN} theme={{
        components: {
          Button: {
              algorithm: true
            }
          }
        }}>
          <ProConfigProvider>
            <App />
          </ProConfigProvider>
        </ConfigProvider>
      </AuthProvider>
    </BrowserRouter>
)
