import * as Tooltip from '@radix-ui/react-tooltip'; interface TooltipProps { tooltip: React.ReactNode; children: React.ReactNode; sideOffset?: number; className?: string; arrowClassName?: string; tooltipStyle?: React.CSSProperties; position?: 'top' | 'bottom' | 'left' | 'right'; maxWidth?: number; delay?: number; } const WithTooltip = ({ tooltip, children, sideOffset = 5, className = '', arrowClassName = '', tooltipStyle = {}, position = 'top', maxWidth = 250, delay = 0, }: TooltipProps) => { return ( {children}
{tooltip}
); }; export default WithTooltip;