import React from 'react';
import { StyleProvider } from '@ant-design/cssinjs';
import { BixiProvider, zhCN as bixiZhCN } from '@bixi-design/provider';
import { DEFAULT_THEME } from '@bixi-design/themes';
import { ConfigProvider } from 'antd';
import antZhCN from 'antd/es/locale/zh_CN';
import ReactDOM from 'react-dom/client';

import App from './App';

ReactDOM.createRoot(document.querySelector('#root')!).render(
  <React.StrictMode>
    <ConfigProvider locale={antZhCN} theme={DEFAULT_THEME}>
      <BixiProvider locale={bixiZhCN}>
        <StyleProvider hashPriority="high">
          <App />
        </StyleProvider>
      </BixiProvider>
    </ConfigProvider>
  </React.StrictMode>
);
