All files / src/motion/features gestures.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 0/0
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 1433x 33x 33x 33x 33x     33x            
import { useFocusGesture } from "../../gestures/use-focus-gesture"
import { useHoverGesture } from "../../gestures/use-hover-gesture"
import { useTapGesture } from "../../gestures/use-tap-gesture"
import { useViewport } from "./viewport/use-viewport"
import { makeRenderlessComponent } from "../utils/make-renderless-component"
import { FeatureComponents } from "./types"
 
export const gestureAnimations: FeatureComponents = {
    inView: makeRenderlessComponent(useViewport),
    tap: makeRenderlessComponent(useTapGesture),
    focus: makeRenderlessComponent(useFocusGesture),
    hover: makeRenderlessComponent(useHoverGesture),
}