import { Download } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useT } from "@/i18n"; import { installNow, useSelfUpdate } from "@/lib/selfUpdate"; /** Small notice shown once a new Manager version is downloaded and waiting to be installed. */ export function UpdateBanner() { const t = useT(); const s = useSelfUpdate(); if (s.phase !== "ready" && s.phase !== "installing") return null; return (

{t("selfupd.ready", { v: s.version ?? "" })}

{s.phase === "installing" ? t("selfupd.installing") : t("selfupd.onClose")}

{s.phase === "ready" && ( )}
); }