import type React from "react"; import { useState } from "react"; interface TooltipProps { text: string; children: React.ReactElement; } export function Tooltip({ text, children }: TooltipProps) { const [showTooltip, setShowTooltip] = useState(false); const handleMouseEnter = () => { setShowTooltip(true); }; const handleMouseLeave = () => { setShowTooltip(false); }; return ( // biome-ignore lint/a11y/noStaticElementInteractions: Tooltip wrapper only shows/hides content on hover, not a clickable element {children} {showTooltip ? ( {text} ) : null} ); }