import { __ } from '@wordpress/i18n'; import { useBlockProps, InspectorControls } from '@wordpress/block-editor'; import { PanelBody, SelectControl } from '@wordpress/components'; export const edit = ( props ) => { const blockProps = useBlockProps(); const mode = [ { label: 'Icon + Number + Text', value: '' }, { label: 'Icon + Number', value: 'text' }, { label: 'Number + Text', value: 'icon' }, ]; return ( <> props.setAttributes( { hidden: value ? value : '', } ) } />
{ props.attributes.hidden && props.attributes.hidden === 'icon' ? ( '' ) : ( ) } { '99' } { props.attributes.hidden && props.attributes.hidden === 'text' ? ( '' ) : ( { ' Courses' } ) }
); };