Track the position of the mouse, in the page or relative to an element.
This is custom React hooks, you need to follow the Basic Rules when you use it.
The position is relative to the box when the ref is used.
const useMouse = <T extends HTMLElement = HTMLElement>() => {
ref: RefObject<T | null>
x: number
y: number
}