import React from 'react';
import ReactDOM from 'react-dom/client';
import 'antd/dist/reset.css';
import { ConfigProvider } from 'antd';
import App from './App';
import 'dayjs/locale/zh-cn';
import zhCN from 'antd/locale/zh_CN';
import './assets/style/index.scss';
import dayjs from 'dayjs';
import { themeConfig } from './assets/theme';
import '~/style/index.scss';
import { Provider } from 'react-redux';
import { store } from './store';

dayjs.locale('zh-cn');

const root = ReactDOM.createRoot(document.getElementById('root')!);

root.render(
  // <React.StrictMode>
  <ConfigProvider locale={zhCN} theme={themeConfig}>
    <Provider store={store}>
      <App />
    </Provider>
  </ConfigProvider>,
  // </React.StrictMode>,
);
