* Single row used for every tooltip annotation (user references + auto- * detected referrer spikes). Matches the chart-marker visual: the icon * fills the circle, surrounded by a high-contrast border. Callers pass * fill-aware icons (e.g. ` ` or a sized Lucide icon).
({
icon,
title,
description,
}: {
icon: ReactNode;
title: ReactNode;
description?: ReactNode;
})
| 332 | * fill-aware icons (e.g. `<SerieIcon fill />` or a sized Lucide icon). |
| 333 | */ |
| 334 | function OPAnnotationRow({ |
| 335 | icon, |
| 336 | title, |
| 337 | description, |
| 338 | }: { |
| 339 | icon: ReactNode; |
| 340 | title: ReactNode; |
| 341 | description?: ReactNode; |
| 342 | }) { |
| 343 | return ( |
| 344 | <div className="flex items-start gap-2"> |
| 345 | <div className="mt-0.5 flex size-5 shrink-0 items-center justify-center overflow-hidden rounded-full border border-foreground text-foreground"> |
| 346 | {icon} |
| 347 | </div> |
| 348 | <div className="col min-w-0 flex-1 gap-0.5"> |
| 349 | <div className="truncate font-medium text-sm leading-tight"> |
| 350 | {title} |
| 351 | </div> |
| 352 | {description && ( |
| 353 | <div className="truncate text-muted-foreground text-xs leading-snug"> |
| 354 | {description} |
| 355 | </div> |
| 356 | )} |
| 357 | </div> |
| 358 | </div> |
| 359 | ); |
| 360 | } |
| 361 | |
| 362 | export function OPTooltipCard({ |
| 363 | children, |
nothing calls this directly
no outgoing calls
no test coverage detected