npm i react-photo-gallery
// AdView.js
const photos = [
{
src: "https://image-bucket.s3.amazonaws.com/xxx.jpeg",
width: 4,
height: 3,
},
{
src: "https://image-bucket.s3.amazonaws.com/xxx.jpeg",
width: 1,
height: 1,
},
];
return (
<>
<Gallery photos={photos} />
<pre>{JSON.stringify(ad, null, 4)}</pre>
</>
);