({ message, phase }: { message: string; phase?: string })
| 444 | // ==================== Error display ==================== |
| 445 | |
| 446 | function ErrorPanel({ message, phase }: { message: string; phase?: string }) { |
| 447 | return ( |
| 448 | <div className="rounded-md border border-red/30 bg-red/5 px-3 py-2.5"> |
| 449 | <div className="flex items-center gap-2 mb-1"> |
| 450 | <span className="w-2 h-2 rounded-full bg-red shrink-0" /> |
| 451 | <span className="text-[12px] font-medium text-red"> |
| 452 | {phase ? `Failed at ${phase} step` : 'Failed'} |
| 453 | </span> |
| 454 | </div> |
| 455 | <p className="text-[12px] text-text whitespace-pre-wrap">{message}</p> |
| 456 | </div> |
| 457 | ) |
| 458 | } |
| 459 | |
| 460 | // ==================== Segmented control ==================== |
| 461 |
nothing calls this directly
no outgoing calls
no test coverage detected