import{isMouseEvent as e}from"./utils/event-type.js";import{usePointerEvent as t}from"../events/use-pointer-event.js";import{AnimationType as n}from"../render/utils/types.js";function o(t,o,r){return function(i,v){var s;e(i)&&t.isHoverEventsEnabled&&(null==r||r(i,v),null===(s=t.animationState)||void 0===s||s.setActive(n.Hover,o))}}function r(e,n){var r=e.onHoverStart,i=e.onHoverEnd,v=e.whileHover;t(n,"pointerenter",r||v?o(n,!0,r):void 0),t(n,"pointerleave",i||v?o(n,!1,i):void 0)}export{r as useHoverGesture};
//# sourceMappingURL=use-hover-gesture.js.map
