main
import { toast } from 'react-toastify'; export default (text, variant) => toast[variant](text, { position: 'top-right', autoClose: 5000, hideProgressBar: false, closeOnClick: true, pauseOnHover: true, draggable: true, progress: undefined, });