import React from "react";
import { enqueueSnackbar } from "notistack";

const openToast = (message, variant, duration) => {
  return enqueueSnackbar(message, {
    variant: variant,
    anchorOrigin: { vertical: "top", horizontal: "right" },
    autoHideDuration: duration,
  });
};

export default openToast;
