ohctechv3/.svn/pristine/66/665cae8784dcef4f9007fa3661c19f0605d9edfb.svn-base

33 lines
715 B
Plaintext
Raw Permalink Normal View History

2024-10-28 15:03:36 +05:30
import { ToastContainer, toast } from 'react-toastify';
const CustomToast = () => {
return (
<ToastContainer
position="top-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
theme="light"
transition:Bounce
stacked
/>
)
}
export const notifySuccess = (msg) => toast.success(msg);
export const notifyError = (msg) => toast.error(msg);
export const notifyInfo = (msg) => toast.info(msg);
export const notifyWarn = (msg) => toast.warn(msg);
export default CustomToast;