import { enqueueSnackbar } from 'notistack';

const OpenToast = (message, color, time) => {
  return enqueueSnackbar(message, {
    variant: color,
    anchorOrigin: { vertical: 'top', horizontal: 'right' },
    autoHideDuration: time
  });
};

export default OpenToast;
