angrybeanie-front-end/components/featureimage.js

16 lines
326 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.url}
height={400}
width={800}
2021-09-05 16:12:45 +10:00
priority={true}
2021-02-04 14:27:14 +11:00
/>
</div>
);
export default FeatureImage