src/lib/map-single.js
// Clean up the featured image to make props more easy to access
Clean up the featured image to make props more easy to access
Clean up the featured image to make props more easy to access
function mapFeaturedImage(featuredImage) {
    featuredImage = featuredImage.node;
    const { width, height } = featuredImage.mediaDetails;
    featuredImage = Object.assign({ width, height }, featuredImage);
    return featuredImage;
}
function mapFeaturedImage ( featuredImage ) { featuredImage = featuredImage . node ; const { width , height } = featuredImage . mediaDetails ; featuredImage = Object . assign ( { width , height } , featuredImage ) ; return featuredImage ; }
Clean up the featured image to make props more easy to access
Clean up the featured image to make props more easy to access