"use client"; import { useTranslation } from "react-i18next"; import { formatDateTime } from "@/lib/i18n/formats"; type PluginUpdateStatusProps = { checking: boolean; lastCheckedAt: string | null; error: string | null; }; /** * The status strip below the plugin toolbar explains the independent Sync * and marketplace-check actions, then reports the outcome of the last check. * A check failure never blocks the plugin list; it only shows here. */ export function PluginUpdateStatus({ checking, lastCheckedAt, error }: PluginUpdateStatusProps) { const { t } = useTranslation(); return (

{t("plugins:updateCheckDescription")}

{checking &&

{t("plugins:checkingForUpdates")}

} {!checking && lastCheckedAt && (

{t("plugins:updatesLastChecked", { time: formatDateTime(lastCheckedAt) })}

)} {error && (
{error}
)}
); }