Files
livedash-node/app/providers.tsx
Kaj Kowalski cd05fc8648 fix: resolve Prettier markdown code block parsing errors
- 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
2026-01-20 21:09:29 +01:00

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 };