This commit is contained in:
UltraLionFr
2025-08-20 17:42:45 +02:00
parent 673119679e
commit c8a473a572
13 changed files with 10 additions and 62 deletions
+8
View File
@@ -0,0 +1,8 @@
'use client';
import { SessionProvider } from 'next-auth/react';
import { ReactNode } from 'react';
export default function AuthProvider({ children }: { children: ReactNode }) {
return <SessionProvider>{children}</SessionProvider>;
}
+30
View File
@@ -0,0 +1,30 @@
"use client";
import { Toaster } from "react-hot-toast";
export default function ToasterProvider() {
return (
<Toaster
position="top-right"
toastOptions={{
style: {
background: "#11131c",
color: "#fff",
border: "1px solid #2a2f3a",
},
success: {
iconTheme: {
primary: "#22c55e", // green
secondary: "#11131c",
},
},
error: {
iconTheme: {
primary: "#ef4444", // red
secondary: "#11131c",
},
},
}}
/>
);
}