import AutoFixHighOutlinedIcon from '@mui/icons-material/AutoFixHighOutlined' import CheckCircleOutlineOutlinedIcon from '@mui/icons-material/CheckCircleOutlineOutlined' import DeleteOutlineOutlinedIcon from '@mui/icons-material/DeleteOutlineOutlined' import Box from '@mui/material/Box' import Chip from '@mui/material/Chip' import IconButton from '@mui/material/IconButton' import Tooltip from '@mui/material/Tooltip' import { OptimizedImage } from '@/shared/ui/OptimizedImage' import type { GalleryImageItem } from '../model/types' type Props = { items: GalleryImageItem[] deleting?: boolean resizing?: string | null onDelete: (id: string) => void onResize: (id: string) => void } export function GalleryGrid({ items, deleting, resizing, onDelete, onResize }: Props) { return ( {items.map((item) => ( {item.isResized ? ( } sx={{ height: 24, '& .MuiChip-label': { px: 0.75 }, '& .MuiChip-icon': { fontSize: 14, ml: 0.5 } }} /> ) : ( )} {!item.isResized && ( onResize(item.id)} > )} onDelete(item.id)} > ))} ) }