import { Box, Button, Typography } from '@mui/material'; import CloseIcon from '@mui/icons-material/Close'; import { showGalleryProps } from '../camera.types'; const ShowMobileGallery = ({ setShowGallery, images, deleteImage, setImages, save, }: showGalleryProps) => { return ( {images.length} Photo{images.length !== 1 ? 's' : ''} {images.map((image, index) => ( deleteImage(index)} className='delete-btn' sx={{ position: 'absolute', top: 4, right: 2, minWidth: 24, width: 24, height: 24, bgcolor: '#ef4444', color: 'white', borderRadius: '50%', p: 0, opacity: 0, pointerEvents: 'none', transition: 'opacity 0.2s ease-in-out', '&:hover': { bgcolor: '#dc2626', }, }} fontSize='small' /> {index + 1} ))} {/* Gallery Footer */} ); }; export default ShowMobileGallery;