: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import { SelectControl } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import PropTypes from 'prop-types';
export const SelectForms = ( props ) => {
const forms = typeof props.forms !== 'undefined' ? props.forms : {};
for ( const [ key, value ] of Object.entries( forms ) ) {
style={ { minHeight: '10em' } }
hideLabelFromVision="true"
label={ __( 'Select Forms', 'ninja-forms' ) }
onChange={ ( value ) => props.setForms( value ) }
SelectForms.propTypes = {
setForms: PropTypes.func.isRequired,