Files
lmtlab/app/toastify-provider.tsx
T
2024-10-12 23:24:37 -07:00

32 lines
759 B
TypeScript

'use client';
import 'react-toastify/dist/ReactToastify.css';
// import '../../app/globals.css';
import { ToastContainer } from 'react-toastify';
import React from 'react';
interface ToastProviderProps {
children: React.ReactNode;
}
export default function ToastProvider({ children }: ToastProviderProps) {
return (
<>
{ children }
<ToastContainer
position="bottom-right"
autoClose={ 2000 }
hideProgressBar={ false }
newestOnTop={ false }
closeOnClick
rtl={ false }
pauseOnFocusLoss
draggable
pauseOnHover
theme="dark"
/>
</>
);
}