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 (