app.js
function setEmoji(type,emojiDefault, emojiInfo, emojiError, emojiWarn) {
  let icon = emojiDefault
  switch (type) {
    case 'info':
      icon = emojiInfo
      break
    case 'error':
      icon = emojiError
      break
    case 'warn':
      icon = emojiWarn
      break
    default:
  }
  return icon
}
function setEmoji(type,emojiDefault, emojiInfo, emojiError, emojiWarn) {
  let icon = emojiDefault
  switch (type) {
    case 'info':
      icon = emojiInfo
      break
    case 'error':
      icon = emojiError
      break
    case 'warn':
      icon = emojiWarn
      break
    default:
  }
  return icon
}
function setEmoji ( type , emojiDefault , emojiInfo , emojiError , emojiWarn ) { let icon = emojiDefault switch ( type ) { case 'info' : icon = emojiInfo break case 'error' : icon = emojiError break case 'warn' : icon = emojiWarn break default : } return icon }
map icon to Given Type
@param {string} type
@param {*} emojiDefault
@param {*} emojiInfo
@param {*} emojiError
@param {*} emojiWarn
map icon to Given Type