import classnames from 'classnames'; import React from 'react'; import RTooltip, { TooltipProps } from 'react-tooltip-lite'; interface ITooltipProps extends TooltipProps { children: any; getRef?: (node: any) => any; } const TOOLTIP_CLS = 'syl-tooltip'; const Tooltip = ({ children, content, getRef, tipContentClassName = '', ...rest }: ITooltipProps) => ( { getRef && getRef(t); }} {...rest} > {children} ); export { ITooltipProps, Tooltip, TOOLTIP_CLS };