You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProductImage.tsx 481B

1234567891011121314151617181920212223
  1. import { Box } from '@mui/system';
  2. import Image from 'next/image';
  3. interface ProductImageProps {
  4. image: string;
  5. }
  6. const ProductImage: React.FC<ProductImageProps> = ({ image }) => {
  7. return (
  8. <Box
  9. sx={{
  10. display: 'flex',
  11. width: { xs: '100%', md: '50%' },
  12. height: '100%',
  13. justifyContent: { xs: 'center' },
  14. }}
  15. >
  16. <Image src={image} alt="profile" width={500} height={500} />
  17. </Box>
  18. );
  19. };
  20. export default ProductImage;