🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 ImagePreview.js

📁 Path: ./wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/shared/ImagePreview.js
📊 Size: 557 B
🔒 Perm: 0644
📝 MIME: text/plain
/**
 * Internal dependencies
 */
import { getImageByID } from '@helpers/imageHelper'

/**
 * WordPress dependencies
 */
import { withSelect } from '@wordpress/data'

/**
 * Render image from image id.
 *
 * @param {string} imageUrl Image url.
 */
const ImagePreview = ( { imageUrl } ) => {
	if ( ! imageUrl ) {
		return null
	}

	return <img src={ imageUrl } alt="" />
}

export default withSelect( ( select, props ) => {
	const { imageID, sizeSlug } = props

	return {
		imageUrl: imageID ? getImageByID( imageID, sizeSlug ) : null,
	}
} )( ImagePreview )
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨