: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import { Notice } from '@wordpress/components';
import PropTypes from 'prop-types';
export const DisplayNotice = ( props ) => {
//TODO: Use state management
const removeNotice = () => {
jQuery( '#nf-trigger-emails-container .components-notice' ).remove();
jQuery( '#nf-bulk-export-container .components-notice' ).remove();
onRemove={ removeNotice }
DisplayNotice.propTypes = {
isDismissible: PropTypes.string,
status: PropTypes.string,