Files
dta_webapp/ditch-the-agent/src/components/base/Image.tsx
2025-07-12 21:19:35 -05:00

15 lines
370 B
TypeScript

import { Box, SxProps } from '@mui/material';
import { ImgHTMLAttributes } from 'react';
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
src: string;
alt?: string;
sx?: SxProps;
}
const Image = ({ src, alt, sx, ...rest }: ImageProps) => (
<Box component="img" src={src} alt={alt} sx={sx} {...rest} />
);
export default Image;