woocommerce/plugins/woocommerce-admin/client/components/product-image/example.md

318 B

import { ProductImage } from '@woocommerce/components';

const MyProductImage = () => (
	<div>
		<ProductImage product={ null } />
		<ProductImage product={ { images: [] } } />
		<ProductImage product={ { images: [
			{
				src: 'https://i.cloudup.com/pt4DjwRB84-3000x3000.png',
			},
		] } } />
	</div>
);