Files
2fa-tool/app/layout.tsx
v0 b1be9aa5a4 fix: suppress benign warning from analytics component
Remove @vercel/analytics to eliminate benign warning.

Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
2026-03-07 15:10:35 +00:00

42 lines
1.1 KiB
TypeScript

import type React from "react"
import type { Metadata } from "next"
import { Geist, Geist_Mono } from "next/font/google"
import { ThemeProvider } from "@/components/theme-provider"
import { LanguageProvider } from "@/lib/i18n"
import "./globals.css"
const _geist = Geist({ subsets: ["latin"] })
const _geistMono = Geist_Mono({ subsets: ["latin"] })
export const metadata: Metadata = {
title: "2FA 验证器 - 安全的双因素认证工具",
description: "纯前端双因素认证工具,支持导入密钥、扫码、上传图片等功能",
generator: "v0.app",
icons: {
icon: "/images/logo.jpg",
apple: "/images/logo.jpg",
},
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="zh-CN" suppressHydrationWarning>
<body className={`font-sans antialiased`}>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
storageKey="2fa-theme"
>
<LanguageProvider>{children}</LanguageProvider>
</ThemeProvider>
</body>
</html>
)
}