-
-
Notifications
You must be signed in to change notification settings - Fork 367
Expand file tree
/
Copy pathlayout.tsx
More file actions
44 lines (38 loc) · 1.12 KB
/
layout.tsx
File metadata and controls
44 lines (38 loc) · 1.12 KB
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
import "./globals.css";
import { Inter } from "next/font/google";
import { JetBrains_Mono } from "next/font/google";
import { ThemeProvider } from "@usesend/ui";
import { Toaster } from "@usesend/ui/src/toaster";
import { TRPCReactProvider } from "~/trpc/react";
import { Metadata } from "next";
const inter = Inter({
subsets: ["latin"],
variable: "--font-sans",
});
const jetbrainsMono = JetBrains_Mono({
subsets: ["latin"],
variable: "--font-mono",
});
export const metadata: Metadata = {
title: "useSend",
description: "Open source email platform",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};
export default async function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" suppressHydrationWarning className="bg-sidebar-background">
<body
className={`font-sans ${inter.variable} ${jetbrainsMono.variable} app bg-sidebar-background`}
>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<Toaster />
<TRPCReactProvider>{children}</TRPCReactProvider>
</ThemeProvider>
</body>
</html>
);
}