code: function parseIcon(icon = "none") {
    if (!!icon && icon !== "none") {
      if (typeof icon === "string") {
        return { icon, position: "left", style: {} };
      }
  
      return { position: "left", style: {}, ...icon };
    }
  
    return null;
  }
docs: Translates icon prop value into complex internal object