import HighlightOff from '@mui/icons-material/HighlightOff'; import Box from '@mui/material/Box'; import IconButton from '@mui/material/IconButton'; import React, { FC, useState } from 'react'; import { PhotoPreviewProps } from './types'; const PREVIEW_WIDTH = 72; const PREVIEW_HEIGHT = 72; const _noop = () => null; const DeleteIcon = ({ onClick }: { onClick: () => void }) => ( ); const PhotoPreview: FC = ({ src, alt, width = PREVIEW_WIDTH, height = PREVIEW_HEIGHT, enableDelete = true, onDeleteImage = _noop, onClick = _noop, allowView = false, queueItem, }) => { const [imageIsLoaded, setImageIsLoaded] = useState(false); return ( {alt} setImageIsLoaded(true)} /> {enableDelete && } ); }; export default PhotoPreview;