oversci/app/layout.tsx
2025-01-31 19:32:50 +08:00

32 lines
772 B
TypeScript

// app/layout.tsx
import { Inter } from 'next/font/google'
import '@ant-design/v5-patch-for-react-19';
import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'
import { AntdRegistry } from '@ant-design/nextjs-registry'
import './globals.css'
const inter = Inter({ subsets: ['latin'] })
export const metadata = {
title: '在线协作文档编辑器',
description: '基于 Next.js 的在线协作文档编辑器',
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="zh-CN">
<body className={inter.className}>
<AntdRegistry>
<ConfigProvider locale={zhCN}>
{children}
</ConfigProvider>
</AntdRegistry>
</body>
</html>
)
}