discord-clone/app/(main)/layout.tsx

26 lines
555 B
TypeScript
Raw Normal View History

2023-09-04 19:53:50 -07:00
import './globals.css'
import type { Metadata } from 'next'
2023-10-07 12:41:57 -07:00
import { Open_Sans } from 'next/font/google'
2023-10-07 13:14:50 -07:00
import { ClerkProvider } from '@clerk/nextjs'
2023-09-04 19:53:50 -07:00
2023-10-07 12:41:57 -07:00
const font = Open_Sans({ subsets: ['latin'] })
2023-09-04 19:53:50 -07:00
export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
2023-10-07 13:14:50 -07:00
<ClerkProvider>
<html lang="en">
<body className={font.className}>{children}</body>
</html>
</ClerkProvider>
2023-09-04 19:53:50 -07:00
)
}