{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bento-integrations",
  "type": "registry:component",
  "title": "Bento Integrations",
  "description": "An integrations bento with a central hub, animated data flowing along curved links, connectable service tiles, a scrolling webhook log and an SDK install snippet.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "bento",
    "bento",
    "integrations",
    "hub",
    "webhooks",
    "sdk",
    "beams"
  ],
  "docs": "https://hyperblur.dev/effects/bento-integrations",
  "files": [
    {
      "path": "registry/hyperblur/bento-integrations.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/bento-integrations.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface BentoIntegrationsItem {\n  name: string;\n  category: string;\n  description: string;\n  connected?: boolean;\n}\n\nexport interface BentoIntegrationsEvent {\n  method: string;\n  event: string;\n  status: number;\n  ms: number;\n}\n\nexport interface BentoIntegrationsProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  hubLabel?: string;\n  items?: BentoIntegrationsItem[];\n  events?: BentoIntegrationsEvent[];\n  installCommand?: string;\n  onConnectChange?: (name: string, connected: boolean) => void;\n  accent?: string;\n}\n\nconst glyphs = [\n  \"M4 6h12M4 10h12M4 14h8\",\n  \"M3 12c2.5-5 4.5-5 7 0s4.5 5 7 0\",\n  \"M10 3l6 3.5v7L10 17l-6-3.5v-7z\",\n  \"M10 4a6 6 0 100 12 6 6 0 000-12zm0 3a3 3 0 100 6 3 3 0 000-6z\",\n  \"M4 4h5v5H4zM11 4h5v5h-5zM4 11h5v5H4zM11 11h5v5h-5z\",\n  \"M10 4l7 12H3z\",\n  \"M4 5h12v8H9l-4 3v-3H4z\",\n  \"M11 3L5 11h5l-1 6 6-8h-5z\",\n];\n\nconst css = `\n@keyframes hb-kb3-rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }\n@keyframes hb-kb3-flow { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }\n@keyframes hb-kb3-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }\n@keyframes hb-kb3-pulse { 0% { transform: scale(.8); opacity: .6; } 100% { transform: scale(2.1); opacity: 0; } }\n@keyframes hb-kb3-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }\n@keyframes hb-kb3-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }\n.hb-kb3 {\n  --hb-kb3-accent: #22d3ee;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kb3 *, .hb-kb3 *::before, .hb-kb3 *::after { box-sizing: border-box; }\n.hb-kb3-in { position: relative; max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8cqi, 104px) clamp(16px, 5cqi, 48px); }\n.hb-kb3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4cqi, 44px); animation: hb-kb3-rise .7s cubic-bezier(.2, .8, .2, 1) backwards; }\n.hb-kb3-head > div { max-width: 600px; }\n.hb-kb3-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #a1a1a1; font-size: 13px; font-weight: 500; }\n.hb-kb3-eyebrow svg { color: var(--hb-kb3-accent); }\n.hb-kb3-title { margin: 0; font-size: clamp(28px, 4.2cqi, 46px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }\n.hb-kb3-sub { margin: 14px 0 0; color: #8f8f8f; font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }\n.hb-kb3-count { flex: none; display: grid; gap: 2px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: #111; text-align: right; }\n.hb-kb3-count strong { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }\n.hb-kb3-count span { color: #8f8f8f; font-size: 12px; }\n.hb-kb3-grid {\n  display: grid;\n  grid-template-columns: repeat(4, minmax(0, 1fr));\n  grid-template-areas: \"t0 hub hub t1\" \"t2 hub hub t3\" \"hooks hooks sdk sdk\";\n  gap: 12px;\n}\n.hb-kb3-cell {\n  position: relative;\n  min-width: 0;\n  overflow: hidden;\n  padding: 18px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 18px;\n  background: linear-gradient(180deg, #121212, #0d0d0d);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);\n  animation: hb-kb3-rise .7s cubic-bezier(.2, .8, .2, 1) backwards;\n  animation-delay: calc(var(--hb-kb3-i, 0) * 70ms + 120ms);\n  transition: border-color .25s ease, transform .25s ease;\n}\n.hb-kb3-hub {\n  grid-area: hub;\n  display: flex;\n  flex-direction: column;\n  padding: 0;\n  background:\n    radial-gradient(55% 60% at 50% 50%, color-mix(in srgb, var(--hb-kb3-accent) 12%, transparent), transparent 70%),\n    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 16px 16px,\n    #0c0c0c;\n}\n.hb-kb3-map { position: relative; flex: 1; min-height: 260px; }\n.hb-kb3-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }\n.hb-kb3-link { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.2; stroke-dasharray: 1; animation: hb-kb3-draw 1s ease both; animation-delay: calc(var(--hb-kb3-j) * 60ms + 300ms); transition: stroke .25s ease; }\n.hb-kb3-flow { fill: none; stroke: var(--hb-kb3-accent); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 14 286; animation: hb-kb3-flow var(--d, 3s) linear infinite; animation-delay: calc(var(--hb-kb3-j) * -470ms); opacity: .85; filter: drop-shadow(0 0 4px var(--hb-kb3-accent)); }\n.hb-kb3-node { transform-box: fill-box; transform-origin: center; animation: hb-kb3-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--hb-kb3-j) * 60ms + 500ms); }\n.hb-kb3-node rect { fill: #141414; stroke: rgba(255, 255, 255, .12); transition: stroke .25s ease, fill .25s ease; }\n.hb-kb3-node path { fill: none; stroke: #a1a1a1; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s ease; }\n.hb-kb3-ring { transform-box: fill-box; transform-origin: center; fill: none; stroke: var(--hb-kb3-accent); stroke-width: 1; animation: hb-kb3-pulse 2.6s ease-out infinite; }\n.hb-kb3-ring + .hb-kb3-ring { animation-delay: 1.3s; }\n.hb-kb3-core rect { fill: #0f0f0f; stroke: color-mix(in srgb, var(--hb-kb3-accent) 55%, transparent); stroke-width: 1.4; }\n.hb-kb3-core path { fill: var(--hb-kb3-accent); }\n.hb-kb3-hubcap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .06); background: rgba(10, 10, 10, .7); }\n.hb-kb3-hubcap h3 { margin: 0; font-size: 14.5px; font-weight: 600; }\n.hb-kb3-hubcap p { margin: 3px 0 0; color: #8f8f8f; font-size: 12.5px; }\n.hb-kb3-stat { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--hb-kb3-accent) 12%, transparent); color: color-mix(in srgb, var(--hb-kb3-accent) 70%, #fff); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-kb3-stat i { width: 6px; height: 6px; border-radius: 50%; background: var(--hb-kb3-accent); box-shadow: 0 0 8px var(--hb-kb3-accent); }\n.hb-kb3-tile { display: flex; flex-direction: column; gap: 12px; }\n.hb-kb3-tile:hover { border-color: color-mix(in srgb, var(--hb-kb3-accent) 40%, rgba(255, 255, 255, .08)); transform: translate3d(0, -2px, 0); }\n.hb-kb3-ttop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }\n.hb-kb3-badge { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; background: linear-gradient(145deg, #1d1d1d, #111); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }\n.hb-kb3-badge path { fill: none; stroke: #ededed; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }\n.hb-kb3-tile:hover .hb-kb3-badge path { stroke: var(--hb-kb3-accent); }\n.hb-kb3-btn { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: transparent; color: #ededed; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }\n.hb-kb3-btn:hover { background: rgba(255, 255, 255, .06); }\n.hb-kb3-btn[aria-pressed=\"true\"] { border-color: transparent; background: color-mix(in srgb, var(--hb-kb3-accent) 14%, transparent); color: color-mix(in srgb, var(--hb-kb3-accent) 75%, #fff); }\n.hb-kb3-btn:focus-visible { outline: 2px solid var(--hb-kb3-accent); outline-offset: 2px; }\n.hb-kb3-tile h3 { margin: 0; font-size: 14.5px; font-weight: 600; }\n.hb-kb3-tile h3 span { margin-left: 6px; color: #6f6f6f; font-size: 12px; font-weight: 500; }\n.hb-kb3-tile p { margin: 4px 0 0; color: #8f8f8f; font-size: 12.5px; line-height: 1.5; }\n.hb-kb3-sync { margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .08); color: #5f5f5f; font-size: 11px; }\n.hb-kb3-hooks { grid-area: hooks; }\n.hb-kb3-sdk { grid-area: sdk; }\n.hb-kb3-ctitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }\n.hb-kb3-ctitle h3 { margin: 0; font-size: 14.5px; font-weight: 600; }\n.hb-kb3-ctitle span { color: #6f6f6f; font-size: 12px; }\n.hb-kb3-log { position: relative; height: 132px; overflow: hidden; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }\n.hb-kb3-logtrack { animation: hb-kb3-scroll 14s linear infinite; }\n.hb-kb3-log:hover .hb-kb3-logtrack { animation-play-state: paused; }\n.hb-kb3-ev { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; height: 33px; padding: 0 4px; border-bottom: 1px solid rgba(255, 255, 255, .04); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; }\n.hb-kb3-ev b { padding: 2px 0; border-radius: 5px; background: rgba(255, 255, 255, .06); color: #a1a1a1; font-weight: 600; font-size: 10px; text-align: center; }\n.hb-kb3-ev span { overflow: hidden; color: #d4d4d4; text-overflow: ellipsis; white-space: nowrap; }\n.hb-kb3-ev em { font-style: normal; color: #4ade80; }\n.hb-kb3-ev em[data-bad=\"true\"] { color: #fb7185; }\n.hb-kb3-ev small { color: #5f5f5f; font-size: 11px; text-align: right; min-width: 44px; }\n.hb-kb3-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }\n.hb-kb3-langs span { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; color: #a1a1a1; font-size: 12px; transition: color .2s ease, border-color .2s ease; }\n.hb-kb3-langs span:hover { color: #ededed; border-color: rgba(255, 255, 255, .2); }\n.hb-kb3-code { border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: #090909; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }\n.hb-kb3-install { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }\n.hb-kb3-install code { flex: 1; min-width: 0; overflow: hidden; color: #ededed; font: inherit; text-overflow: ellipsis; white-space: nowrap; }\n.hb-kb3-install code::before { content: \"$ \"; color: #5f5f5f; }\n.hb-kb3-copy { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: #141414; color: #a1a1a1; cursor: pointer; transition: color .2s ease, background .2s ease; }\n.hb-kb3-copy:hover { color: #ededed; background: #1c1c1c; }\n.hb-kb3-copy:focus-visible { outline: 2px solid var(--hb-kb3-accent); outline-offset: 2px; }\n.hb-kb3-snip { margin: 0; padding: 10px 12px; color: #a1a1a1; line-height: 1.7; white-space: pre; overflow: hidden; }\n.hb-kb3-snip b { color: var(--hb-kb3-accent); font-weight: 400; }\n.hb-kb3-snip i { color: #fcd34d; font-style: normal; }\n${[0, 1, 2, 3]\n  .map(\n    (k) =>\n      `.hb-kb3:has(.hb-kb3-tile[data-k=\"${k}\"]:hover) .hb-kb3-link[data-k=\"${k}\"] { stroke: var(--hb-kb3-accent); }\n.hb-kb3:has(.hb-kb3-tile[data-k=\"${k}\"]:hover) .hb-kb3-node[data-k=\"${k}\"] rect { stroke: var(--hb-kb3-accent); fill: color-mix(in srgb, var(--hb-kb3-accent) 12%, #111); }\n.hb-kb3:has(.hb-kb3-tile[data-k=\"${k}\"]:hover) .hb-kb3-node[data-k=\"${k}\"] path { stroke: var(--hb-kb3-accent); }`,\n  )\n  .join(\"\\n\")}\n@container (max-width: 860px) {\n  .hb-kb3-head { flex-direction: column; align-items: flex-start; }\n  .hb-kb3-count { text-align: left; }\n  .hb-kb3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: \"hub hub\" \"t0 t1\" \"t2 t3\" \"hooks hooks\" \"sdk sdk\"; }\n}\n@container (max-width: 520px) {\n  .hb-kb3-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: \"hub\" \"t0\" \"t1\" \"t2\" \"t3\" \"hooks\" \"sdk\"; }\n  .hb-kb3-map { min-height: 220px; }\n  .hb-kb3-hubcap { flex-direction: column; align-items: flex-start; }\n  .hb-kb3-ev { grid-template-columns: 40px minmax(0, 1fr) auto; }\n  .hb-kb3-ev small { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kb3 *, .hb-kb3 *::before, .hb-kb3 *::after { animation: none !important; transition: none !important; }\n  .hb-kb3-flow, .hb-kb3-ring { display: none; }\n}\n`;\n\nconst defaultItems: BentoIntegrationsItem[] = [\n  { name: \"Ledger\", category: \"Payments\", description: \"Payouts, invoices and refunds synced every five minutes.\", connected: true },\n  { name: \"Relay\", category: \"Messaging\", description: \"Route alerts to the right channel with per-team rules.\", connected: true },\n  { name: \"Vault\", category: \"Storage\", description: \"Mirror files and exports to your own bucket, encrypted.\", connected: false },\n  { name: \"Pulse\", category: \"Analytics\", description: \"Stream product events into dashboards in real time.\", connected: true },\n];\n\nconst defaultEvents: BentoIntegrationsEvent[] = [\n  { method: \"POST\", event: \"invoice.paid\", status: 200, ms: 84 },\n  { method: \"POST\", event: \"customer.updated\", status: 200, ms: 61 },\n  { method: \"POST\", event: \"file.uploaded\", status: 201, ms: 132 },\n  { method: \"POST\", event: \"alert.triggered\", status: 200, ms: 47 },\n  { method: \"PUT\", event: \"seat.assigned\", status: 200, ms: 73 },\n  { method: \"POST\", event: \"refund.created\", status: 502, ms: 1204 },\n  { method: \"POST\", event: \"event.batch\", status: 202, ms: 39 },\n];\n\nfunction Glyph({ d }: { d: string }) {\n  return (\n    <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n      <path d={d} />\n    </svg>\n  );\n}\n\nexport function BentoIntegrations({\n  eyebrow = \"Integrations\",\n  title = \"Plug into the stack you already run\",\n  subtitle = \"One hub keeps payments, messaging, storage and analytics in sync, with retries, logs and typed SDKs included.\",\n  hubLabel = \"Conduit hub\",\n  items = defaultItems,\n  events = defaultEvents,\n  installCommand = \"npx shadcn@latest add https://hyperblur.dev/r/bento-integrations.json\",\n  onConnectChange,\n  accent = \"#22d3ee\",\n  className,\n  style,\n  ...rest\n}: BentoIntegrationsProps) {\n  const [connected, setConnected] = React.useState<boolean[]>(() => items.map((i) => Boolean(i.connected)));\n  const [copied, setCopied] = React.useState(false);\n  const timer = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n  React.useEffect(() => () => {\n    if (timer.current) clearTimeout(timer.current);\n  }, []);\n\n  const toggle = (i: number) => {\n    const next = !connected[i];\n    setConnected((prev) => prev.map((v, j) => (j === i ? next : v)));\n    onConnectChange?.(items[i].name, next);\n  };\n\n  const copy = () => {\n    navigator.clipboard?.writeText(installCommand).catch(() => {});\n    setCopied(true);\n    if (timer.current) clearTimeout(timer.current);\n    timer.current = setTimeout(() => setCopied(false), 1600);\n  };\n\n  const cx = 200;\n  const cy = 140;\n  const nodes = Array.from({ length: 8 }, (_, j) => {\n    const order = [5, 7, 3, 1, 6, 2, 4, 0];\n    const a = (order[j] / 8) * Math.PI * 2 + Math.PI / 8;\n    return { x: cx + Math.cos(a) * 150, y: cy + Math.sin(a) * 98 };\n  });\n\n  const activeCount = connected.filter(Boolean).length;\n\n  return (\n    <section\n      className={[\"hb-kb3\", className].filter(Boolean).join(\" \")}\n      style={{ \"--hb-kb3-accent\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-bento-integrations\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kb3-in\">\n        <header className=\"hb-kb3-head\">\n          <div>\n            {eyebrow ? (\n              <p className=\"hb-kb3-eyebrow\">\n                <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n                  <path d=\"M6 3v3M10 3v3M4.5 6h7v2.5a3.5 3.5 0 01-7 0zM8 12v2\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" />\n                </svg>\n                {eyebrow}\n              </p>\n            ) : null}\n            <h2 className=\"hb-kb3-title\">{title}</h2>\n            {subtitle ? <p className=\"hb-kb3-sub\">{subtitle}</p> : null}\n          </div>\n          <div className=\"hb-kb3-count\">\n            <strong>120+</strong>\n            <span>native connectors</span>\n          </div>\n        </header>\n\n        <div className=\"hb-kb3-grid\">\n          <article className=\"hb-kb3-cell hb-kb3-hub\" style={{ \"--hb-kb3-i\": 0 } as React.CSSProperties}>\n            <div className=\"hb-kb3-map\">\n              <svg viewBox=\"0 0 400 280\" preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\">\n                {nodes.map((n, j) => {\n                  const mx = (n.x + cx) / 2 + (n.y - cy) * 0.18;\n                  const my = (n.y + cy) / 2 - (n.x - cx) * 0.18;\n                  const d = `M${cx} ${cy} Q${mx.toFixed(1)} ${my.toFixed(1)} ${n.x.toFixed(1)} ${n.y.toFixed(1)}`;\n                  return (\n                    <g key={j}>\n                      <path className=\"hb-kb3-link\" data-k={j} d={d} pathLength={1} style={{ \"--hb-kb3-j\": j } as React.CSSProperties} />\n                      <path className=\"hb-kb3-flow\" d={d} pathLength={300} style={{ \"--hb-kb3-j\": j, \"--d\": `${(2.6 + (j % 3) * 0.7).toFixed(1)}s` } as React.CSSProperties} />\n                    </g>\n                  );\n                })}\n                {nodes.map((n, j) => (\n                  <g key={j} className=\"hb-kb3-node\" data-k={j} style={{ \"--hb-kb3-j\": j } as React.CSSProperties}>\n                    <rect x={(n.x - 19).toFixed(1)} y={(n.y - 19).toFixed(1)} width=\"38\" height=\"38\" rx=\"11\" />\n                    <g transform={`translate(${(n.x - 10).toFixed(1)} ${(n.y - 10).toFixed(1)})`}>\n                      <path d={glyphs[j]} />\n                    </g>\n                  </g>\n                ))}\n                <rect className=\"hb-kb3-ring\" x={cx - 36} y={cy - 36} width=\"72\" height=\"72\" rx=\"20\" />\n                <rect className=\"hb-kb3-ring\" x={cx - 36} y={cy - 36} width=\"72\" height=\"72\" rx=\"20\" />\n                <g className=\"hb-kb3-core\">\n                  <rect x={cx - 34} y={cy - 34} width=\"68\" height=\"68\" rx=\"19\" />\n                  <path d={`M${cx - 14} ${cy - 10}h28l-4 6h-28zM${cx - 12} ${cy - 1}h28l-4 6h-28zM${cx - 10} ${cy + 8}h22l-4 6h-22z`} />\n                </g>\n              </svg>\n            </div>\n            <div className=\"hb-kb3-hubcap\">\n              <div>\n                <h3>{hubLabel}</h3>\n                <p>Every connector routes through one queue with automatic retries.</p>\n              </div>\n              <span className=\"hb-kb3-stat\">\n                <i aria-hidden=\"true\" />\n                {activeCount} of {items.length} live\n              </span>\n            </div>\n          </article>\n\n          {items.slice(0, 4).map((it, k) => (\n            <article\n              key={it.name}\n              className=\"hb-kb3-cell hb-kb3-tile\"\n              data-k={k}\n              style={{ gridArea: `t${k}`, \"--hb-kb3-i\": k + 1 } as React.CSSProperties}\n            >\n              <div className=\"hb-kb3-ttop\">\n                <span className=\"hb-kb3-badge\">\n                  <Glyph d={glyphs[k]} />\n                </span>\n                <button type=\"button\" className=\"hb-kb3-btn\" aria-pressed={Boolean(connected[k])} onClick={() => toggle(k)}>\n                  {connected[k] ? \"Connected\" : \"Connect\"}\n                </button>\n              </div>\n              <div>\n                <h3>\n                  {it.name}\n                  <span>{it.category}</span>\n                </h3>\n                <p>{it.description}</p>\n              </div>\n              <div className=\"hb-kb3-sync\">{connected[k] ? `Last sync ${2 + k * 3} min ago` : \"Not connected\"}</div>\n            </article>\n          ))}\n\n          <article className=\"hb-kb3-cell hb-kb3-hooks\" style={{ \"--hb-kb3-i\": 5 } as React.CSSProperties}>\n            <div className=\"hb-kb3-ctitle\">\n              <h3>Webhooks with a paper trail</h3>\n              <span>Signed, retried, replayable</span>\n            </div>\n            <div className=\"hb-kb3-log\">\n              <div className=\"hb-kb3-logtrack\">\n                {[0, 1].map((copyIndex) => (\n                  <div key={copyIndex} aria-hidden={copyIndex === 1 ? \"true\" : undefined}>\n                    {events.map((e, j) => (\n                      <div key={`${copyIndex}-${j}`} className=\"hb-kb3-ev\">\n                        <b>{e.method}</b>\n                        <span>{e.event}</span>\n                        <em data-bad={e.status >= 400 ? \"true\" : undefined}>{e.status}</em>\n                        <small>{e.ms} ms</small>\n                      </div>\n                    ))}\n                  </div>\n                ))}\n              </div>\n            </div>\n          </article>\n\n          <article className=\"hb-kb3-cell hb-kb3-sdk\" style={{ \"--hb-kb3-i\": 6 } as React.CSSProperties}>\n            <div className=\"hb-kb3-ctitle\">\n              <h3>Typed SDKs</h3>\n              <span>Five languages</span>\n            </div>\n            <div className=\"hb-kb3-langs\">\n              {[\"TypeScript\", \"Python\", \"Go\", \"Ruby\", \"Rust\"].map((l) => (\n                <span key={l}>{l}</span>\n              ))}\n            </div>\n            <div className=\"hb-kb3-code\">\n              <div className=\"hb-kb3-install\">\n                <code>{installCommand}</code>\n                <button type=\"button\" className=\"hb-kb3-copy\" onClick={copy} aria-label={copied ? \"Copied\" : \"Copy install command\"}>\n                  {copied ? (\n                    <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n                      <path d=\"M3 8.5l3 3 7-7\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                    </svg>\n                  ) : (\n                    <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n                      <rect x=\"5\" y=\"5\" width=\"8.5\" height=\"8.5\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.4\" />\n                      <path d=\"M11 3.5V3a1.5 1.5 0 00-1.5-1.5H3.5A1.5 1.5 0 002 3v6a1.5 1.5 0 001.5 1.5H4\" stroke=\"currentColor\" strokeWidth=\"1.4\" />\n                    </svg>\n                  )}\n                </button>\n              </div>\n              <pre className=\"hb-kb3-snip\">\n                <b>await</b> conduit.connect(<i>&quot;ledger&quot;</i>)\n              </pre>\n            </div>\n          </article>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}