import React, { FC } from 'react'; import { IconName, Tooltip, LinkButton, Button } from '@grafana/ui'; import { PopoverContent, TooltipPlacement } from '@grafana/ui/src/components/Tooltip'; interface Props { tooltip: PopoverContent; icon: IconName; className?: string; tooltipPlacement?: TooltipPlacement; to?: string; target?: string; onClick?: () => void; 'data-testid'?: string; } export const ActionIcon: FC = ({ tooltip, icon, to, target, onClick, className, tooltipPlacement = 'top', ...rest }) => { const ariaLabel = typeof tooltip === 'string' ? tooltip : undefined; return ( {to ? ( ) : (