: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import { CustomSelectControl } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import PropTypes from 'prop-types';
export const SelectAction = ( props ) => {
typeof props.form !== 'undefined' ? props.form.emailActions : {};
for ( const [ key, value ] of Object.entries( actions ) ) {
label={ __( 'Select Email Action:', 'ninja-forms' ) }
onChange={ ( { selectedItem } ) => {
actions[ selectedItem.value ].value = selectedItem.value;
props.setAction( "action", actions[ selectedItem.value ] );
SelectAction.propTypes = {
setAction: PropTypes.func.isRequired