({ error, children }: { error: string; children: React.ReactElement })
| 86 | } |
| 87 | |
| 88 | function ErrorTooltip({ error, children }: { error: string; children: React.ReactElement }) { |
| 89 | return ( |
| 90 | <Tooltip> |
| 91 | <TooltipTrigger render={children} /> |
| 92 | <TooltipPopup |
| 93 | className="whitespace-pre-wrap break-all max-w-md" |
| 94 | sideOffset={5} |
| 95 | side="top" |
| 96 | align="end" |
| 97 | > |
| 98 | {error} |
| 99 | </TooltipPopup> |
| 100 | </Tooltip> |
| 101 | ); |
| 102 | } |
| 103 | |
| 104 | function StatusBadge({ success, error }: { success: boolean; error?: string }) { |
| 105 | if (success) { |
nothing calls this directly
no outgoing calls
no test coverage detected