import toast from "../util/toast" ; namespace ErrorHandlingService { param { string } title param { Error } error export function notifyUserOfError ( title , error ) { console . error ( title , error ) ; toast ( { title , description : error . message || error . name , status : "error" , duration : undefined , isClosable : true , } ) ; } } export default ErrorHandlingService ;