mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-04-05 18:09:04 +00:00
26 lines
712 B
TypeScript
26 lines
712 B
TypeScript
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)',
|
|
},
|
|
},
|
|
}}
|
|
/>
|
|
);
|
|
}
|