(e)
| 57 | }; |
| 58 | |
| 59 | const onSwipedLeft: SwipeCallback = (e) => { |
| 60 | e?.event?.stopPropagation?.(); |
| 61 | |
| 62 | const max = items.length - 1; |
| 63 | if (index === max) { |
| 64 | return isNullOrUndefined(e?.dir) && onEnd?.(e); |
| 65 | } |
| 66 | |
| 67 | return onUpdateIndex(1); |
| 68 | }; |
| 69 | |
| 70 | const handlers = useSwipeable({ onSwipedLeft, onSwipedRight }); |
| 71 | const indicator = ( |
no test coverage detected