/** * rCal applet definitions — Next Event. */ import type { AppletDefinition, AppletLiveData } from "../../shared/applet-types"; const nextEvent: AppletDefinition = { id: "next-event", label: "Next Event", icon: "📅", accentColor: "#2563eb", ports: [ { name: "events-in", type: "json", direction: "input" }, { name: "event-out", type: "json", direction: "output" }, ], renderCompact(data: AppletLiveData): string { const { snapshot } = data; const title = (snapshot.title as string) || "No upcoming events"; const time = (snapshot.time as string) || ""; const location = (snapshot.location as string) || ""; return `