2025-10-01 15:29:23 -06:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import { Toaster } from "react-hot-toast";
|
|
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
|
|
export function ToastProvider({ children }: { children: React.ReactNode }) {
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{children}
|
|
|
|
|
<Toaster
|
|
|
|
|
toastOptions={{
|
|
|
|
|
style: {
|
|
|
|
|
padding: "16px",
|
|
|
|
|
fontSize: "16px",
|
2025-10-06 17:26:14 -06:00
|
|
|
maxWidth: "400px",
|
2025-10-01 15:29:23 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
error: {
|
|
|
|
|
duration: 6000,
|
|
|
|
|
style: {
|
|
|
|
|
fontSize: "1.5rem",
|
2026-02-12 18:53:29 -06:00
|
|
|
backgroundColor: "#ffefefdd",
|
2025-10-01 15:29:23 -06:00
|
|
|
color: "#000000ff",
|
|
|
|
|
fontWeight: "600",
|
2025-10-06 17:26:14 -06:00
|
|
|
padding: "1.5rem",
|
2025-10-01 15:29:23 -06:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
success: {
|
|
|
|
|
duration: 6000,
|
|
|
|
|
style: {
|
|
|
|
|
fontSize: "1.5rem",
|
2026-02-12 18:53:29 -06:00
|
|
|
backgroundColor: "#ecfef5dd",
|
2025-10-01 15:29:23 -06:00
|
|
|
color: "#000000ff",
|
|
|
|
|
fontWeight: "600",
|
2025-10-06 17:26:14 -06:00
|
|
|
padding: "1.5rem",
|
2025-10-01 15:29:23 -06:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
position="top-left"
|
|
|
|
|
reverseOrder={false}
|
|
|
|
|
/>
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|