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>
        <script
            type="text/javascript"
            src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=jWDCUpsk33htQsF6IEwk4ctkERTOFFH0"
        ></script>
        <script src="https://unpkg.com/mapv-three@1.0.10/dist/mapvthree.umd.js"></script>
        <script src="//mapv.baidu.com/build/mapv.min.js"></script>
        <script src="https://code.bdstatic.com/npm/mapvgl@1.0.0-beta.189/dist/mapvgl.min.js"></script>
        </html>
    );
}
