The bordered card with the download glyph + title + version. * Each variant supplies its own action as children.
(props: {
title?: string;
version: string | null;
children?: React.ReactNode;
})
| 108 | /** The bordered card with the download glyph + title + version. |
| 109 | * Each variant supplies its own action as children. */ |
| 110 | function UpdateCardShell(props: { |
| 111 | title?: string; |
| 112 | version: string | null; |
| 113 | children?: React.ReactNode; |
| 114 | }) { |
| 115 | return ( |
| 116 | <div className="mx-2 mb-2 rounded-xl border border-primary/25 bg-primary/[0.06] p-3"> |
| 117 | <div className="flex items-center gap-2"> |
| 118 | <div className="flex size-5 shrink-0 items-center justify-center rounded-full bg-primary/15"> |
| 119 | <svg viewBox="0 0 16 16" fill="none" className="size-3 text-primary"> |
| 120 | <path |
| 121 | d="M8 3v7M5 7l3 3 3-3" |
| 122 | stroke="currentColor" |
| 123 | strokeWidth="1.4" |
| 124 | strokeLinecap="round" |
| 125 | strokeLinejoin="round" |
| 126 | /> |
| 127 | <path d="M3 12h10" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" /> |
| 128 | </svg> |
| 129 | </div> |
| 130 | <div className="min-w-0"> |
| 131 | <p className="text-xs font-semibold text-foreground"> |
| 132 | {props.title ?? "Update available"} |
| 133 | </p> |
| 134 | {props.version && <p className="text-sm text-muted-foreground">v{props.version}</p>} |
| 135 | </div> |
| 136 | </div> |
| 137 | {props.children} |
| 138 | </div> |
| 139 | ); |
| 140 | } |
| 141 | |
| 142 | // ── NpmUpdateCard (npm-installed CLI: copyable command) ─────────────────── |
| 143 |
nothing calls this directly
no outgoing calls
no test coverage detected