import "@/app/global.css";
import { RootProvider } from "fumadocs-ui/provider/next";
import { Inter } from "next/font/google";
import Script from "next/script";

const inter = Inter({
  subsets: ["latin"],
});

export default function Layout({ children }: LayoutProps<"/">) {
  return (
    <html lang="en" className={inter.className} suppressHydrationWarning>
      <body className="flex flex-col min-h-screen">
        <RootProvider>
          {children}
          <Script
            src="https://mk-analytics.dathere.com/api/script.js"
            data-site-id="10"
            strategy="afterInteractive"
          />
        </RootProvider>
      </body>
    </html>
  );
}
