import type { Metadata } from 'next'; import { Geist, Geist_Mono } from 'next/font/google'; import React from 'react'; import './globals.scss'; import { ThemeProvider } from 'next-themes'; const geistSans = Geist({ variable: '--font-geist-sans', subsets: ['latin'], }); const geistMono = Geist_Mono({ variable: '--font-geist-mono', subsets: ['latin'], }); export const metadata: Metadata = { title: 'Next App', }; // `app/layout.js` 是根布局,是必需的,必须包含 html 和 body 标签。所有路由下的内容都渲染到`children`所在位置 export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return (