This repository was archived by the owner on Sep 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathlayout.tsx
More file actions
50 lines (46 loc) · 1.44 KB
/
layout.tsx
File metadata and controls
50 lines (46 loc) · 1.44 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
45
46
47
48
49
50
import { MobileSidebarController } from "@/components/mobile-sidebar-controller";
import "./global.css";
import { RootProvider } from "fumadocs-ui/provider";
import { Inter } from "next/font/google";
import { Suspense, type ReactNode } from "react";
import { Toaster } from "@/components/ui/sonner";
import { Analytics } from "@vercel/analytics/next";
import { ThemeProvider } from "@/components/theme-provider";
import { baseUrl, createMetadata } from "@/lib/metadata";
const inter = Inter({
subsets: ["latin"],
});
export const metadata = createMetadata({
title: {
template: "%s | Better Auth Kit",
default: "Better Auth Kit",
},
description: "A handy collection of plugins, adapters, libraries and more.",
metadataBase: baseUrl,
});
export default function Layout({ children }: { children: ReactNode }) {
return (
<html lang="en" className={inter.className} suppressHydrationWarning>
<head>
<link rel="icon" href="/favicon/favicon.ico" sizes="any" />
</head>
<body className="flex flex-col min-h-screen overflow-hidden bg-background text-foreground antialiased">
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
<RootProvider
theme={{
enabled: false,
}}
>
<Suspense>
<MobileSidebarController>
{children}
<Toaster />
</MobileSidebarController>
<Analytics />
</Suspense>
</RootProvider>
</ThemeProvider>
</body>
</html>
);
}