import { enqueueSnackbar } from 'notistack';

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