HEX
Server: Apache
System: Linux webd006.cluster128.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: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/lacalita/wp-content/plugins/rey-core/inc/gutenberg/src/blocks/spacer-v1/inspector.js
/**
 * WordPress dependencies
 */
import { __ } from '@wordpress/i18n';
import { InspectorControls } from '@wordpress/block-editor';
import { PanelBody, RangeControl } from '@wordpress/components';

const Inspector = ( props ) => {

	const {
		attributes,
		setAttributes
	} = props;

	const {
		heightDesktop, heightTablet, heightMobile
	} = attributes;

	return (
		<InspectorControls>
			<PanelBody title={ __( 'Spacer Settings', 'rey-core' ) }>
				<RangeControl
					label={ __( 'Desktop Height', 'rey-core' ) + ' (px)' }
					value={ heightDesktop ? parseInt( heightDesktop ) : '' }
					onChange={ ( next ) => setAttributes( { heightDesktop: parseInt( next ) } ) }
					min={ 0 }
					max={ 1000 }
					step={ 1 }
					initialPosition={ 20 }
				/>
				<RangeControl
					label={ __( 'Tablet Height', 'rey-core' ) + ' (px)' }
					value={ heightTablet ? parseInt( heightTablet ) : '' }
					onChange={ ( next ) => setAttributes( { heightTablet: parseInt( next ) } ) }
					min={ 0 }
					max={ 1000 }
					step={ 1 }
					initialPosition={ 20 }
				/>
				<RangeControl
					label={ __( 'Mobile Height', 'rey-core' ) + ' (px)' }
					value={ heightMobile ? parseInt( heightMobile ) : '' }
					onChange={ ( next ) => setAttributes( { heightMobile: parseInt( next ) } ) }
					min={ 0 }
					max={ 1000 }
					step={ 1 }
					initialPosition={ 20 }
				/>
			</PanelBody>
		</InspectorControls>
	);
};

export default Inspector;