fenghuo/apps/web/app/layout.tsx

36 lines
754 B
TypeScript
Raw Normal View History

2025-02-18 15:35:03 +08:00
import { Geist, Geist_Mono } from 'next/font/google';
2025-05-26 19:56:34 +08:00
import '@repo/ui/globals.css';
2025-02-18 15:35:03 +08:00
import { Providers } from '@/components/providers';
import type { Metadata } from 'next';
2025-02-18 15:35:03 +08:00
const fontSans = Geist({
subsets: ['latin'],
variable: '--font-sans',
2025-02-18 15:35:03 +08:00
});
const fontMono = Geist_Mono({
subsets: ['latin'],
variable: '--font-mono',
2025-02-18 15:35:03 +08:00
});
export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
2025-02-18 15:35:03 +08:00
};
export default function RootLayout({
children,
2025-02-18 15:35:03 +08:00
}: Readonly<{
children: React.ReactNode;
2025-02-18 15:35:03 +08:00
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={`${fontSans.variable} ${fontMono.variable} font-sans antialiased `}>
<Providers>{children}</Providers>
</body>
</html>
);
2025-02-18 15:35:03 +08:00
}