import App from "./src/app";
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import { checkAndSaveUserId } from "./src/utils";
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";

dayjs.locale("zh-cn");

// 检查并保存userId
if (typeof window !== 'undefined') {
   checkAndSaveUserId();
}

export default (x) => {
   return (
      <ConfigProvider locale={zhCN}>
         <App />
      </ConfigProvider>
   );
};
