import React from 'react'; import { PopoverProps } from '../../../popover/interfaces'; export interface TooltipProps { value: React.ReactNode; trackRef: React.RefObject; /** * @deprecated This property is only kept for backward compatibility with CloudEditor package. * New implementations should use data-* attributes instead. * TODO: Remove after CloudEditor migrates away from this property. */ trackKey?: string | number; position?: 'top' | 'right' | 'bottom' | 'left'; className?: string; contentAttributes?: React.HTMLAttributes; size?: PopoverProps['size']; hideOnOverscroll?: boolean; onDismiss?: () => void; } export default function Tooltip({ value, trackRef, trackKey, className, contentAttributes, position, size, hideOnOverscroll, onDismiss }: TooltipProps): JSX.Element;