mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-02-13 13:55:42 +01:00
- Fix syntax errors in skills markdown files (.github/skills, .opencode/skills) - Change typescript to tsx for code blocks with JSX - Replace ellipsis (...) in array examples with valid syntax - Separate CSS from TypeScript into distinct code blocks - Convert JavaScript object examples to valid JSON in docs - Fix enum definitions with proper comma separation
30 lines
747 B
TypeScript
30 lines
747 B
TypeScript
"use client";
|
|
|
|
import { NeonAuthUIProvider, UserButton } from "@neondatabase/auth/react";
|
|
import type { ReactNode } from "react";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { authClient } from "@/lib/auth/client";
|
|
|
|
export function Providers({ children }: { children: ReactNode }) {
|
|
return (
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<NeonAuthUIProvider
|
|
authClient={authClient}
|
|
redirectTo="/dashboard"
|
|
emailOTP
|
|
credentials={{ forgotPassword: true }}
|
|
>
|
|
{children}
|
|
</NeonAuthUIProvider>
|
|
</ThemeProvider>
|
|
);
|
|
}
|
|
|
|
// Export UserButton for use in layouts
|
|
export { UserButton };
|