/** * rInbox applet definitions — Thread Feed. */ import type { AppletDefinition, AppletLiveData } from "../../shared/applet-types"; const threadFeed: AppletDefinition = { id: "thread-feed", label: "Thread Feed", icon: "📬", accentColor: "#0e7490", ports: [ { name: "mailbox-in", type: "string", direction: "input" }, { name: "count-out", type: "number", direction: "output" }, ], renderCompact(data: AppletLiveData): string { const { snapshot } = data; const total = (snapshot.total as number) || 0; const unread = (snapshot.unread as number) || 0; const latest = (snapshot.latestSubject as string) || "No messages"; return `