MCPcopy
hub / github.com/firecrawl/fireplexity / hideTooltip

Function hideTooltip

app/use-citation-tooltip.tsx:70–86  ·  view source on GitHub ↗
(immediate = false)

Source from the content-addressed store, hash-verified

68 }
69
70 const hideTooltip = (immediate = false) => {
71 if (showTimeoutRef.current) {
72 clearTimeout(showTimeoutRef.current)
73 showTimeoutRef.current = null
74 }
75
76 const hide = () => {
77 setVisible(false)
78 currentTargetRef.current = null
79 }
80
81 if (immediate) {
82 hide()
83 } else {
84 hideTimeoutRef.current = setTimeout(hide, 300) // Increased delay for better UX
85 }
86 }
87
88 const handleMouseOver = (e: MouseEvent) => {
89 const target = e.target as HTMLElement

Callers 2

handleMouseOutFunction · 0.85
CitationTooltipFunction · 0.85

Calls 1

hideFunction · 0.85

Tested by

no test coverage detected