- Updates to reference the new Richtext field from Strapi - Update to include feature image in RSS - General cleanups (removing a lot of console.log) - I think there's a nextjs update in there as well
20 lines
No EOL
420 B
JavaScript
Executable file
20 lines
No EOL
420 B
JavaScript
Executable file
import Image from "next/legacy/image";
|
|
|
|
|
|
const FeatureImage = ({ imagedata, basepath }) => {
|
|
const imgSrc = basepath + imagedata.url
|
|
return (
|
|
<div className="featuredimage">
|
|
<Image
|
|
src={imgSrc}
|
|
layout="responsive"
|
|
height={400}
|
|
width={800}
|
|
priority={true}
|
|
alt={imagedata.name}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default FeatureImage |