function embedImagesAsAssetBlocks(img) {
    // This field is not localized.
    const asset = img.fields.image[`de-DE`]
    return [
      {
        nodeType: `embedded-asset-block`,
        content: [],
        data: {
          target: {
            sys: {
              type: `Link`,
              linkType: `Asset`,
              id: asset.sys.id,
            },
          },
        },
      },
    ]
  }
// Return a Rich Text embedded asset object
Return a Rich Text embedded asset object
Return a Rich Text embedded asset object
function embedImagesAsAssetBlocks(img) {
    const asset = img.fields.image[`de-DE`]
    return [
      {
        nodeType: `embedded-asset-block`,
        content: [],
        data: {
          target: {
            sys: {
              type: `Link`,
              linkType: `Asset`,
              id: asset.sys.id,
            },
          },
        },
      },
    ]
  }
function embedImagesAsAssetBlocks ( img ) { const asset = img . fields . image [ ` ` ] return [ { nodeType : ` ` , content : [ ] , data : { target : { sys : { type : ` ` , linkType : ` ` , id : asset . sys . id , } , } , } , } , ] }
Return a Rich Text embedded asset object
Return a Rich Text embedded asset object
// This field is not localized.