import * as Types from './types' ; export const getErrorResponseMessage = ( response ) : string | undefined => { if ( response . message ) { return response . message ; } if ( response . errors ) { return response . errors . flatMap ( e => ( e . detail ? [ e . detail ] : [ ] ) ) . join ( ',' ) ; } return '' ; } ;