import { FAIL } from '../constants/transactions' ; export const errorToast = ( error , value , openToast , defaultToast ) => { if ( error . message . includes ( 'MetaMask Tx Signature: User denied transaction signature.' ) ) { openToast ( value , FAIL , 'User rejected MetaMask transaction.' ) ; } else { defaultToast ( ) ; } } ;