import { Box } from '@mui/system';
import Image from 'next/image';

interface ProductImageProps {
  image: string;
}

const ProductImage: React.FC<ProductImageProps> = ({ image }) => {
  return (
    <Box
      sx={{
        display: 'flex',
        width: { xs: '100%', md: '50%' },
        height: '100%',
        justifyContent: { xs: 'center' },
      }}
    >
      <Image src={image} alt="profile" width={500} height={500} />
    </Box>
  );
};

export default ProductImage;
