(`[data-word="${activeWord}"]`);
if (!el) {
setBox(null);
lastY.current = null;
return;
}
const next = { x: el.offsetLeft - 3, y: el.offsetTop, w: el.offsetWidth + 6, h: el.offsetHeight };
setJump(lastY.current === null || lastY.current !== next.y);
lastY.current = next.y;
setBox(next);
}, [activeWord]);
return (
{box && (
)}
{words.map((w, i) => (
onSeek(w.start + 0.01)}
>
{w.text}
{" "}
))}
);
}