({
tooltipContent,
children,
...buttonProps
}: ButtonWithTooltipProps)
| 17 | } |
| 18 | |
| 19 | export function ButtonWithTooltip({ |
| 20 | tooltipContent, |
| 21 | children, |
| 22 | ...buttonProps |
| 23 | }: ButtonWithTooltipProps) { |
| 24 | return ( |
| 25 | <TooltipProvider> |
| 26 | <Tooltip> |
| 27 | <TooltipTrigger asChild> |
| 28 | <Button {...buttonProps}>{children}</Button> |
| 29 | </TooltipTrigger> |
| 30 | <TooltipContent className="max-w-xs text-wrap"> |
| 31 | {tooltipContent} |
| 32 | </TooltipContent> |
| 33 | </Tooltip> |
| 34 | </TooltipProvider> |
| 35 | ) |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected