20 lines
No EOL
415 B
JavaScript
Executable file
20 lines
No EOL
415 B
JavaScript
Executable file
import Image from "next/legacy/image";
|
|
|
|
|
|
const FeatureImage = ({ imagedata, basepath }) => {
|
|
const imgSrc = basepath + imagedata.url
|
|
console.log(imagedata)
|
|
return (
|
|
<div className="featuredimage">
|
|
<Image
|
|
src={imgSrc}
|
|
height={400}
|
|
width={800}
|
|
priority={true}
|
|
alt={imagedata.name}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default FeatureImage |