2026-07-26 11:27:21 +07:00
|
|
|
import type { Metadata } from "next";
|
|
|
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
2026-07-26 14:27:36 +07:00
|
|
|
import Script from "next/script";
|
2026-07-26 15:13:18 +07:00
|
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
|
|
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
2026-07-26 11:27:21 +07:00
|
|
|
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 = {
|
2026-07-26 16:14:32 +07:00
|
|
|
title: "DC Automod — Discord Moderation Dashboard",
|
2026-07-26 11:27:21 +07:00
|
|
|
description: "Live Discord monitoring and AI moderation dashboard",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: Readonly<{
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
}>) {
|
|
|
|
|
return (
|
|
|
|
|
<html
|
|
|
|
|
lang="en"
|
|
|
|
|
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
|
|
|
|
suppressHydrationWarning
|
|
|
|
|
>
|
|
|
|
|
<head>
|
2026-07-26 14:27:36 +07:00
|
|
|
<Script id="theme-script" strategy="beforeInteractive">
|
|
|
|
|
{`try{const t=localStorage.getItem('theme')||'dark';document.documentElement.classList.add(t)}catch(e){}`}
|
|
|
|
|
</Script>
|
2026-07-26 11:27:21 +07:00
|
|
|
</head>
|
2026-07-26 15:13:18 +07:00
|
|
|
<body className="min-h-full flex flex-col">
|
|
|
|
|
<TooltipProvider delay={500}>{children}</TooltipProvider>
|
|
|
|
|
<Toaster position="bottom-right" richColors closeButton />
|
|
|
|
|
</body>
|
2026-07-26 11:27:21 +07:00
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|