Restructure project to root layout

This commit is contained in:
beatz174-bit
2025-11-21 16:10:41 +10:00
parent e0e26a34ab
commit 3ffe9bbf99
51 changed files with 16 additions and 12 deletions
+18
View File
@@ -0,0 +1,18 @@
import { Box, Paper } from '@mui/material';
import { PropsWithChildren } from 'react';
import { useSwipe } from '../hooks/useSwipe';
interface SwipeableRowProps extends PropsWithChildren {
onSwipeLeft?: () => void;
onSwipeRight?: () => void;
}
export const SwipeableRow = ({ children, onSwipeLeft, onSwipeRight }: SwipeableRowProps) => {
const gestureHandlers = useSwipe({ onSwipeLeft, onSwipeRight });
return (
<Paper sx={{ p: 1, mb: 1 }} {...gestureHandlers}>
<Box>{children}</Box>
</Paper>
);
};