import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import ConfigProvider from 'antd/es/config-provider';
import zhCN from 'antd/es/locale/zh_CN';
import { App } from './App';
import { gatewayAntdTheme } from './components/ui/antd-theme';
import 'katex/dist/katex.min.css';
import 'streamdown/styles.css';
import 'antd/dist/reset.css';
import './styles.css';

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <ConfigProvider locale={zhCN} theme={gatewayAntdTheme}>
      <App />
    </ConfigProvider>
  </StrictMode>,
);
