+ {phase === "checking" && (
+
+
+ Checking for updates…
+
+ )}
+
+ {phase === "uptodate" &&
margin is up to date.
}
+
+ {phase === "available" && (
+ <>
+
+ margin {version} is available.
+
+ {notes &&
{notes}
}
+ >
+ )}
+
+ {phase === "downloading" && (
+ <>
+
0 ? "" : " indeterminate"}`}>
+
0 ? { width: `${pct}%` } : undefined} />
+
+
{total > 0 ? `Downloading update… ${pct}%` : "Downloading update…"}
+ >
+ )}
+
+ {phase === "installing" && (
+
+
+ Installing update. margin will restart…
+
+ )}
+
+ {phase === "error" && (
+ <>
+
Could not update margin.
+ {error &&
{error}
}
+ >
+ )}
+
+
+ {phase === "available" && (
+
+
+
+
+ )}
+
+ {(phase === "uptodate" || phase === "error") && (
+
+
+
+ )}
+