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
32 lines
736 B
TypeScript
32 lines
736 B
TypeScript
"use client";
|
|
|
|
import { NeonAuthUIProvider } from "@neondatabase/auth/react";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { Toaster } from "@/components/ui/toaster";
|
|
import { authClient } from "@/lib/auth/client";
|
|
|
|
export default function PlatformLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<NeonAuthUIProvider
|
|
authClient={authClient}
|
|
redirectTo="/platform/dashboard"
|
|
emailOTP
|
|
credentials={{ forgotPassword: true }}
|
|
>
|
|
{children}
|
|
<Toaster />
|
|
</NeonAuthUIProvider>
|
|
</ThemeProvider>
|
|
);
|
|
}
|