import { enqueueSnackbar } from 'notistack';

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