angrybeanie-front-end/components/featureimage.js

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