Function
AgentWarningTooltip
({
ariaLabel,
title,
detail,
troubleshootingURL,
variant = "warning",
})
Source from the content-addressed store, hash-verified
| 50 | * optional troubleshooting link. |
| 51 | */ |
| 52 | const AgentWarningTooltip: FC<AgentWarningTooltipProps> = ({ |
| 53 | ariaLabel, |
| 54 | title, |
| 55 | detail, |
| 56 | troubleshootingURL, |
| 57 | variant = "warning", |
| 58 | }) => { |
| 59 | return ( |
| 60 | <HelpPopover> |
| 61 | <HelpPopoverTrigger asChild role="status" aria-label={ariaLabel}> |
| 62 | <TriangleAlertIcon |
| 63 | className={cn( |
| 64 | "relative size-3.5", |
| 65 | variant === "warning" |
| 66 | ? "text-content-warning" |
| 67 | : "text-content-destructive", |
| 68 | )} |
| 69 | /> |
| 70 | </HelpPopoverTrigger> |
| 71 | <HelpPopoverContent> |
| 72 | <HelpPopoverTitle>{title}</HelpPopoverTitle> |
| 73 | <HelpPopoverText> |
| 74 | {detail} |
| 75 | {troubleshootingURL && ( |
| 76 | <> |
| 77 | {" "} |
| 78 | <Link target="_blank" rel="noreferrer" href={troubleshootingURL}> |
| 79 | Troubleshoot |
| 80 | </Link> |
| 81 | </> |
| 82 | )} |
| 83 | </HelpPopoverText> |
| 84 | </HelpPopoverContent> |
| 85 | </HelpPopover> |
| 86 | ); |
| 87 | }; |
| 88 | |
| 89 | const ReadyLifecycle: FC = () => { |
| 90 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected