/** * rPhotos applet definitions — Album Card. */ import type { AppletDefinition, AppletLiveData } from "../../shared/applet-types"; const albumCard: AppletDefinition = { id: "album-card", label: "Album Card", icon: "🖼️", accentColor: "#be185d", ports: [ { name: "album-in", type: "string", direction: "input" }, { name: "image-out", type: "image-url", direction: "output" }, ], renderCompact(data: AppletLiveData): string { const { snapshot } = data; const name = (snapshot.name as string) || "Album"; const count = (snapshot.count as number) || 0; const thumb = (snapshot.thumbnail as string) || ""; return `