add react hot toast

This commit is contained in:
Aaron Po
2026-03-15 21:27:32 -04:00
parent cbaa5bfbca
commit 00b696b3f0
10 changed files with 154 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
import { Toaster } from "react-hot-toast";
export default function ToastProvider() {
return (
<Toaster
position="top-right"
toastOptions={{
duration: 3500,
className: "rounded-box border border-base-300 bg-base-100 text-base-content shadow-lg",
success: {
iconTheme: {
primary: "var(--color-success)",
secondary: "var(--color-success-content)",
},
},
error: {
iconTheme: {
primary: "var(--color-error)",
secondary: "var(--color-error-content)",
},
},
}}
/>
);
}