: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import React, {useEffect, useRef, useState} from "react";
import Modal from "../common/modal";
import {post} from "../utils/request";
import Button from "../common/button";
import ProgressBar from "../common/progress-bar";
export default function MediaLibraryScannerModal(
<ProgressBar progress={progress}/>
<Button id="wp-smush-cancel-media-library-scan"
text={__('Cancel', 'wp-smushit')}
<Button id="wp-smush-start-media-library-scan"
text={__('Start', 'wp-smushit')}
return <Modal id="wp-smush-media-library-scanner-modal"
title={__('Scan Media Library', 'wp-smushit')}
description={__('Scans the media library to detect items to Smush.', 'wp-smushit')}
focusAfterClose={focusAfterClose}
disableCloseButton={inProgress}>