download
raw
344 Bytes
import * as React from 'react';
function useCursor(hovered, onPointerOver = 'pointer', onPointerOut = 'auto', container = document.body) {
React.useEffect(() => {
if (hovered) {
container.style.cursor = onPointerOver;
return () => void (container.style.cursor = onPointerOut);
}
}, [hovered]);
}
export { useCursor };

Xet Storage Details

Size:
344 Bytes
·
Xet hash:
d7dd770ae8bf3bb89d792df93a554dd226013be95a2075115ea9a64a5b19c442

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.