34 lines
878 B
TypeScript
34 lines
878 B
TypeScript
import type { Metadata, Viewport } from "next";
|
|
import "./globals.css";
|
|
import { AuthProvider } from "@/hooks/use-auth";
|
|
import { ThemeProvider } from "next-themes";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Dragon AI Agent",
|
|
description: "A 股智能筛选引擎,盘中实时分析与推荐",
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
maximumScale: 1,
|
|
userScalable: false,
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="zh-CN" suppressHydrationWarning>
|
|
<body className="min-h-screen bg-bg-primary text-text-primary font-display">
|
|
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem={false}>
|
|
<AuthProvider>
|
|
{children}
|
|
</AuthProvider>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
} |