(props: { latestVersion: string; href: string })
| 204 | // ── LinkUpdateCard (self-host / Cloudflare: link to the upgrade guide) ──── |
| 205 | |
| 206 | function LinkUpdateCard(props: { latestVersion: string; href: string }) { |
| 207 | return ( |
| 208 | <UpdateCardShell version={props.latestVersion}> |
| 209 | <a |
| 210 | href={props.href} |
| 211 | target="_blank" |
| 212 | rel="noreferrer" |
| 213 | className="mt-2.5 flex w-full items-center justify-between gap-2 rounded-lg border border-border/60 bg-background/50 px-2.5 py-1.5 text-xs text-sidebar-foreground transition-colors hover:bg-background/80 hover:text-foreground" |
| 214 | > |
| 215 | <span>Upgrade guide</span> |
| 216 | <svg viewBox="0 0 16 16" fill="none" className="size-3 shrink-0"> |
| 217 | <path |
| 218 | d="M4 12L12 4M6 4h6v6" |
| 219 | stroke="currentColor" |
| 220 | strokeWidth="1.4" |
| 221 | strokeLinecap="round" |
| 222 | strokeLinejoin="round" |
| 223 | /> |
| 224 | </svg> |
| 225 | </a> |
| 226 | </UpdateCardShell> |
| 227 | ); |
| 228 | } |
| 229 | |
| 230 | // ── DesktopUpdateCard (desktop app: native restart action) ──────────────── |
| 231 |
nothing calls this directly
no outgoing calls
no test coverage detected