import React from 'react'; import * as RadixTooltip from '@radix-ui/react-tooltip'; export const TooltipProvider = RadixTooltip.Provider; interface TooltipProps { content: React.ReactNode; children: React.ReactNode; side?: 'top' | 'right' | 'bottom' | 'left'; align?: 'start' | 'center' | 'end'; delayDuration?: number; sideOffset?: number; /** * When true, allow the tooltip to wrap onto multiple lines with a reasonable * max width. Default is single-line (nowrap) — matches the original callsites * that use it for short button labels. */ wide?: boolean; } export const Tooltip: React.FC = ({ content, children, side = 'top', align = 'center', delayDuration, sideOffset = 8, wide = false, }) => ( {children} {content} );