63 lines
1.5 KiB
TypeScript
63 lines
1.5 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
import { ClientProviders } from "./client-provider";
|
|
import { Toaster } from "@/components/ui/sonner"
|
|
import { ResolvingMetadata } from "next";
|
|
import { getSiteConfigs } from "@/lib/fetchers";
|
|
import Script from "next/script";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "LiDAR",
|
|
description: "LiDAR for Radar",
|
|
};
|
|
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
|
|
|
|
return (
|
|
<html lang="en" className="dark" suppressHydrationWarning>
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased h-screen`}
|
|
>
|
|
<Script
|
|
id="ga-gtag"
|
|
src={`https://www.googletagmanager.com/gtag/js?id=G-KHRH95GZFS`}
|
|
strategy="beforeInteractive"
|
|
/>
|
|
<Script
|
|
id="ga-gtag-config"
|
|
strategy="beforeInteractive"
|
|
>
|
|
{`
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'G-KHRH95GZFS');
|
|
`}
|
|
</Script>
|
|
<ClientProviders>
|
|
{children}
|
|
</ClientProviders>
|
|
<Toaster />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|