34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import type { Metadata, Viewport } from "next";
|
|
import { GeistSans } from "geist/font/sans";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { AppShell } from "@/components/app-shell";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
import "./globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "cm WhatsApp Bot",
|
|
description: "Self-hosted WhatsApp reminder bot",
|
|
applicationName: "cm WhatsApp Bot",
|
|
appleWebApp: { capable: true, title: "cm WA Bot", statusBarStyle: "default" },
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: [
|
|
{ media: "(prefers-color-scheme: light)", color: "#ffffff" },
|
|
{ media: "(prefers-color-scheme: dark)", color: "#0a0a0a" },
|
|
],
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning className={GeistSans.className}>
|
|
<body>
|
|
<ThemeProvider>
|
|
<AppShell>{children}</AppShell>
|
|
<Toaster richColors position="top-right" />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|