angrybeanie-front-end/components/featureimage.js

16 lines
382 B
JavaScript
Raw Normal View History

2021-02-04 14:27:14 +11:00
import Image from 'next/image';
2021-09-05 16:12:45 +10:00
const FeatureImage = ({ imagedata, basepath }) => (
2021-02-04 14:27:14 +11:00
<div className="featuredimage">
<Image
src={"http://localhost:1337"+imagedata.attributes.url}
height={imagedata.attributes.height}
width={imagedata.attributes.width}
2021-09-05 16:12:45 +10:00
priority={true}
2021-02-04 14:27:14 +11:00
/>
</div>
);
export default FeatureImage