import type { SvgIconComponent } from '@mui/icons-material'; import ImageNotSupported from '@mui/icons-material/ImageNotSupported'; import Box from '@mui/material/Box/Box'; import Paper from '@mui/material/Paper/Paper'; import React, { type FC } from 'react'; import { LoadingSkeleton } from './LoadingSkeleton'; interface ImageProps { isLoading: boolean alt?: string url?: string aspectRatio?: number FallbackIcon?: SvgIconComponent } const Image: FC = ({ isLoading, alt, url, aspectRatio = 16 / 9, FallbackIcon = ImageNotSupported }) => ( {url ? ( {alt} ) : ( )} ); export default Image;