angrybeanie-front-end/components/featureimage.js

20 lines
420 B
JavaScript
Raw Permalink Normal View History

2023-05-20 20:17:35 +10:00
import Image from "next/legacy/image";
2021-02-04 14:27:14 +11:00
const FeatureImage = ({ imagedata, basepath }) => {
const imgSrc = basepath + imagedata.url
return (
2021-02-04 14:27:14 +11:00
<div className="featuredimage">
<Image
src={imgSrc}
layout="responsive"
height={400}
width={800}
2021-09-05 16:12:45 +10:00
priority={true}
alt={imagedata.name}
2021-02-04 14:27:14 +11:00
/>
</div>
);
};
2021-02-04 14:27:14 +11:00
export default FeatureImage