import ReactDOM from 'react-dom/client';
import { AppRouter } from 'router'
import { AppStore } from 'store'
import zhCN from 'antd/es/locale/zh_CN';
import { ConfigProvider } from 'antd';
import 'antd/dist/antd.less';
import './public.scss'
import version from './version.json'

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

root.render(
  // <React.StrictMode>
    <ConfigProvider locale={zhCN}>
      <AppStore>
        <AppRouter />
      </AppStore>
    </ConfigProvider>
  // </React.StrictMode>
);

console.log(
  `\n %c %c fuse-back V${version.main}${version.env === 'dev' ? `-alpha-${version.version}` : ''} - ${location.origin}  \n`, 
  "background: #1fe4dc; padding:5px 0;", "color: #000; background: #1fe4dc; padding:5px 0;"
)