初始化模版工程
This commit is contained in:
34
app/layout.tsx
Normal file
34
app/layout.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user