+
+
+ {t("settings.updates.title")}
+
+
+ {/* idle */}
+ {state.status === "idle" && (
+
+ )}
+
+ {/* checking */}
+ {state.status === "checking" && (
+
+
+ {t("settings.updates.checking")}
+
+ )}
+
+ {/* up to date */}
+ {state.status === "upToDate" && (
+
+
+
+ {t("settings.updates.upToDate")}
+
+
+
+ )}
+
+ {/* available */}
+ {state.status === "available" && (
+
+
+ {t("settings.updates.available", { version: state.version })}
+
+
+
+ )}
+
+ {/* downloading */}
+ {state.status === "downloading" && (
+
+
+
+ {t("settings.updates.downloading")}
+ {progressPercent !== null && {progressPercent}%}
+
+
+
+ )}
+
+ {/* ready to install */}
+ {state.status === "readyToInstall" && (
+
+
+ {t("settings.updates.readyToInstall")}
+
+
+
+ )}
+
+ {/* installing */}
+ {state.status === "installing" && (
+
+
+ {t("settings.updates.installing")}
+
+ )}
+
+ {/* error */}
+ {state.status === "error" && (
+
+
+
+ {t("settings.updates.error")}
+
+
{state.error}
+
+
+ )}
+