"use client"; import { useUpdateReminder } from "@/modules/system/hooks/useUpdateReminder"; const DOCKER_UPDATE_COMMAND = "docker compose pull && docker compose up -d"; type UpdateReminderBarProps = { currentVersion: string | null; latestVersion: string; canSelfUpdate: boolean; isApplying: boolean; error: string | null; onLater: () => void; onDetails: () => void; onUpdate: () => void; }; /** Floating bar above the dock, in the same style as the uninstall confirmation. */ export function UpdateReminderBar({ currentVersion, latestVersion, canSelfUpdate, isApplying, error, onLater, onDetails, onUpdate, }: UpdateReminderBarProps) { return (
Homeio {latestVersion} is available
{currentVersion ? (You have {currentVersion}
) : null}
{DOCKER_UPDATE_COMMAND}
{error}