import { formatDateTime } from "@/lib/i18n/formats"; import type { PluginRecord } from "@/lib/types/plugins"; /** * Renders the host's persisted lifecycle diagnostic without inventing a * second error state in the UI. The message is already normalized by the * backend; the timestamp remains machine-readable for assistive tools and * browser inspection. */ export function PluginErrorDiagnostic({ plugin }: { plugin: PluginRecord }) { if (!plugin.last_error) return null; return (
{plugin.last_error} {plugin.last_error_at && ( )}
); }