import type {Metadata} from "next";
import {AntdRegistry} from "@ant-design/nextjs-registry";
import "./normalize.css";
import "./globals.css";
import "@fortawesome/fontawesome-svg-core/styles.css";
import {App, ConfigProvider} from "antd";
import '@ant-design/v5-patch-for-react-19';
import zhCN from 'antd/locale/zh_CN';

export const metadata: Metadata = {
  title: "MorTnon RuoYi",
  description: "MorTnon 版本高级 RuoYi 前台",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body>
        <AntdRegistry>
          <App>
            <ConfigProvider theme={{ hashed: false }} locale={zhCN}>
              {children}
            </ConfigProvider>
          </App>
        </AntdRegistry>
      </body>
    </html>
  );
}
