iconWithLabel = (icon, label, testid, iconSize) => {
  if (typeof label === "number" && label <= 0) {
    return "";
  }
  const iconSvg = `
      <svg
        class="icon"
        y="-12"
        viewBox="0 0 16 16"
        version="1.1"
        width="${iconSize}"
        height="${iconSize}"
      >
        ${icon}
      </svg>
    `;
  const text = `<text data-testid="${testid}" class="gray">${label}</text>`;
  return flexLayout({ items: [iconSvg, text], gap: 20 }).join("");
}
Creates an icon with label to display repository/gist stats like forks, stars, etc.

@param {string} icon The icon to display.
@param {number|string} label The label to display.
@param {string} testid The testid to assign to the label.
@param {number} iconSize The size of the icon.
@returns {string} Icon with label SVG object.