import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { GlobalRouteLoading } from "../components/global-route-loading";
import "./globals.css";

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "SentAI 巡检平台",
  description: "AI 智能巡检与故障归因平台，阶段 1 外网网站巡检控制台。",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="zh-CN">
      <body className={`${geistSans.variable} ${geistMono.variable}`}>
        <GlobalRouteLoading>{children}</GlobalRouteLoading>
      </body>
    </html>
  );
}

