Files
front-AT/app/Components/layout/ToastProvider.tsx
T
2026-02-12 18:53:29 -06:00

46 lines
1003 B
TypeScript

"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",
maxWidth: "400px",
},
error: {
duration: 6000,
style: {
fontSize: "1.5rem",
backgroundColor: "#ffefefdd",
color: "#000000ff",
fontWeight: "600",
padding: "1.5rem",
},
},
success: {
duration: 6000,
style: {
fontSize: "1.5rem",
backgroundColor: "#ecfef5dd",
color: "#000000ff",
fontWeight: "600",
padding: "1.5rem",
},
},
}}
position="top-left"
reverseOrder={false}
/>
</>
);
}