import { memo } from 'react'
import { RouterProvider, createBrowserRouter } from 'react-router-dom'
import type { RouteObject } from 'react-router-dom'
import syncRoutes from './router'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/es/locale/zh_CN'
const App = () => {
  return (
    <ConfigProvider locale={zhCN}>
      <RouterProvider router={createBrowserRouter(syncRoutes as RouteObject[])} />
    </ConfigProvider>
  )
}
export default memo(App)
