Files
newsui/packages/docs/app/layout.tsx
T

24 lines
657 B
TypeScript
Raw Normal View History

2026-05-19 21:09:56 +08:00
import './globals.css';
2026-05-21 14:12:50 +08:00
import 'fumadocs-ui/style.css';
2026-05-20 01:30:41 +08:00
import type { Metadata } from 'next';
2026-05-21 14:12:50 +08:00
import { RootProvider } from 'fumadocs-ui/provider';
import { Header } from '../components/Header';
2026-05-19 21:09:56 +08:00
export const metadata: Metadata = {
2026-05-20 01:30:41 +08:00
title: 'NewspaperUI — Production Newspaper Components',
description: '生产级报纸布局组件库',
2026-05-19 21:09:56 +08:00
};
2026-05-20 01:30:41 +08:00
export default function RootLayout({ children }: { children: React.ReactNode }) {
2026-05-19 21:09:56 +08:00
return (
2026-05-21 14:12:50 +08:00
<html lang="zh" suppressHydrationWarning>
<body className="flex flex-col min-h-screen">
<RootProvider>
<Header />
{children}
</RootProvider>
</body>
2026-05-19 21:09:56 +08:00
</html>
);
}