-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.tsx
45 lines (41 loc) · 1.29 KB
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import './globals.css';
import type { Metadata } from 'next';
import { Open_Sans } from 'next/font/google';
import { cn } from '@/lib/utils';
import { ClerkProvider } from '@clerk/nextjs';
import { ModalProvider } from '@/components/providers/modal-provider';
import { ThemeProvider } from '@/components/providers/theme-provider';
import { SocketProvider } from '@/components/providers/socket-provider';
import QueryProvider from '@/components/providers/query-provider';
const font = Open_Sans({ subsets: ['latin'] });
export const metadata: Metadata = {
title: 'Team Chat Application',
description: 'Generated by create next app',
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<ClerkProvider>
<html lang="en" suppressHydrationWarning>
<body className={cn(font.className, 'bg-white dark:bg-[#313338]')}>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem={false}
storageKey="discord-theme"
>
<SocketProvider>
<QueryProvider>
<ModalProvider />
{children}
</QueryProvider>
</SocketProvider>
</ThemeProvider>
</body>
</html>
</ClerkProvider>
);
}