import React from "react"; import { Icon } from "eez-studio-ui/icon"; export function LabelWithProgress({ label, progress }: { label: string; progress: number; }) { if (isNaN(progress)) { progress = 0; } progress *= 100; return (
{label}
{progress == 100 ? ( ) : (
{Math.round(progress)} %
)}
); }