export const scopeMapDisplayName = ( scope , scopeDisplayNameList ) => { const entries = Object . entries ( scopeDisplayNameList ) ; for ( const [ key , value ] of entries ) { if ( scope === key ) { return value ; } if ( ! scope && scopeDisplayNameList [ '*' ] ) { return scopeDisplayNameList [ '*' ] ; } } return scope ; } ;