mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import "./globals.css";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { GeistMono } from "geist/font/mono";
|
|
import { GeistSans } from "geist/font/sans";
|
|
import { Wrapper, WrapperWithQuery } from "@/components/wrapper";
|
|
import { createMetadata } from "@/lib/metadata";
|
|
|
|
export const metadata = createMetadata({
|
|
title: {
|
|
template: "%s | Better Auth",
|
|
default: "Better Auth",
|
|
},
|
|
description: "The most comprehensive authentication library for typescript",
|
|
metadataBase: new URL("https://demo.better-auth.com"),
|
|
});
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<head>
|
|
<link rel="icon" href="/favicon/favicon.ico" sizes="any" />
|
|
</head>
|
|
<body className={`${GeistSans.variable} ${GeistMono.variable} font-sans`}>
|
|
<ThemeProvider attribute="class" defaultTheme="dark">
|
|
<Wrapper>
|
|
<WrapperWithQuery>{children}</WrapperWithQuery>
|
|
</Wrapper>
|
|
<Toaster richColors closeButton />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|