Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
next(context)
}
const onSwipedRight = e => {
previous(context)
}
const onSwipedUp = e => {
context.setState({ mode: modes.presenter })
}
const onSwipedDown = e => {
context.setState({ mode: modes.normal })
}
const props = useSwipeable({
onSwipedLeft,
onSwipedRight,
onSwipedUp,
onSwipedDown,
})
return props
}