35 lines
900 B
TypeScript
35 lines
900 B
TypeScript
import './globals.css';
|
|
|
|
import type { Metadata } from "next";
|
|
import { Suspense } from "react";
|
|
import { ThemeProvider } from "@/components/provider/Theme/theme-provider";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
import { AgentationGuard } from "@/components/AgentationGuard";
|
|
import RouteChange from "./RouteChange";
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Nova Chat',
|
|
description: 'Generated by create Nova Chat',
|
|
};
|
|
|
|
interface RootLayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function RootLayout(props: RootLayoutProps) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className="antialiased">
|
|
<ThemeProvider>
|
|
{props.children}
|
|
<Toaster position="top-center" />
|
|
</ThemeProvider>
|
|
<AgentationGuard />
|
|
<Suspense>
|
|
<RouteChange />
|
|
</Suspense>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|