mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-20 10:24:15 +00:00
Co-authored-by: Pablo Fernandez Guerra (PFE) <148432447+pfe-nazaries@users.noreply.github.com> Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
57 lines
1.5 KiB
TypeScript
57 lines
1.5 KiB
TypeScript
import "@/styles/globals.css";
|
|
|
|
import { GoogleTagManager } from "@next/third-parties/google";
|
|
import { Metadata, Viewport } from "next";
|
|
import { ReactNode, Suspense } from "react";
|
|
|
|
import { NavigationProgress, Toaster } from "@/components/ui";
|
|
import { fontSans } from "@/config/fonts";
|
|
import { siteConfig } from "@/config/site";
|
|
import { cn } from "@/lib";
|
|
|
|
import { Providers } from "../providers";
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: siteConfig.name,
|
|
template: `%s - ${siteConfig.name}`,
|
|
},
|
|
description: siteConfig.description,
|
|
icons: {
|
|
icon: "/favicon.ico",
|
|
},
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: [
|
|
{ media: "(prefers-color-scheme: light)", color: "white" },
|
|
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
|
],
|
|
};
|
|
|
|
export default function AuthLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html suppressHydrationWarning lang="en">
|
|
<head />
|
|
<body
|
|
suppressHydrationWarning
|
|
className={cn(
|
|
"bg-background min-h-screen font-sans antialiased",
|
|
fontSans.variable,
|
|
)}
|
|
>
|
|
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
|
|
<Suspense>
|
|
<NavigationProgress />
|
|
</Suspense>
|
|
{children}
|
|
<Toaster />
|
|
<GoogleTagManager
|
|
gtmId={process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID || ""}
|
|
/>
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|