Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderWrapper = true,
children,
animate,
motionStiffness,
motionDamping,
}) => {
const container = useRef(null)
const {
showTooltipAt,
showTooltipFromEvent,
hideTooltip,
isTooltipVisible,
tooltipContent,
tooltipPosition,
tooltipAnchor,
} = useTooltipHandlers(container)
return (
{/* we should not render the div element if using the HTTP API */}
{renderWrapper === true && (
<div style="{containerStyle}">
{children}
{isTooltipVisible && (</div>