import type { ReactNode } from "react"; import { useOpenGeniText } from "./messages/runtime"; export type ConnectionInstalledItem = { id: string; name: string; status: string; showStatus?: boolean; icon?: ReactNode; needsAttention?: boolean; disabled?: boolean; onOpen: () => void; }; /** Compact account/service shortcuts. The host supplies authoritative status. */ export function ConnectionInstalled({ items, title: titleProp, className = "", }: { items: ConnectionInstalledItem[]; title?: string; className?: string; }) { const t = useOpenGeniText(); const title = titleProp === undefined ? t("connectionInstalled.connected") : titleProp; if (!items.length) return null; return (

{title} {items.length}

{items.map((item) => ( ))}
); }