mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-01-25 02:08:11 +00:00
59 lines
1.5 KiB
TypeScript
59 lines
1.5 KiB
TypeScript
import "@/styles/globals.css";
|
|
|
|
import { Metadata, Viewport } from "next";
|
|
import React from "react";
|
|
|
|
import { SidebarWrap, Toaster } from "@/components/ui";
|
|
import { fontSans } from "@/config/fonts";
|
|
import { siteConfig } from "@/config/site";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
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 RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html suppressHydrationWarning lang="en">
|
|
<head />
|
|
<body
|
|
suppressHydrationWarning
|
|
className={cn(
|
|
"min-h-screen bg-background font-sans antialiased",
|
|
fontSans.variable,
|
|
)}
|
|
>
|
|
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
|
|
<div className="flex h-dvh items-center justify-center overflow-hidden">
|
|
<SidebarWrap />
|
|
<main className="no-scrollbar mb-auto h-full flex-1 flex-col overflow-y-auto px-6 py-4 xl:px-10">
|
|
{children}
|
|
<Toaster />
|
|
</main>
|
|
</div>
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|