/** * Inspector Controls */ // Setup the block const { __ } = wp.i18n; const { Component } = wp.element; // Import block components const { InspectorControls, } = wp.editor; // Import Inspector components const { Toolbar, Button, PanelBody, PanelRow, RangeControl, } = wp.components; /** * Create an Inspector Controls wrapper Component */ export default class Inspector extends Component { constructor( props ) { super( ...arguments ); } render() { // Setup the attributes const { attributes: { columns, columnsGap, }, isSelected, className, setAttributes } = this.props; return ( this.props.setAttributes( { columns: value } ) } min={ 1 } max={ 4 } /> this.props.setAttributes( { columnsGap: value } ) } min={ 0 } max={ 5 } step={ 1 } /> ); } }