{
+ if (
+ Math.abs(e.deltaX) > 24 &&
+ Math.abs(e.deltaX) > Math.abs(e.deltaY) &&
+ performance.now() - lastMove.current > 240
+ ) {
+ lastMove.current = performance.now();
+ move(index + Math.sign(e.deltaX));
+ }
+ }}
+ >
+ {[-2, -1, 1, 2].map((offset) => {
+ const neighbor = found[index + offset];
+ return (
+ neighbor && (
+
+ )
+ );
+ })}
+
+ setDeckBack(!deckBack)}
+ />
+
+
+ {count > 1 && (
+