: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import React from 'react';
import tracker from '../../../js/utils/tracker';
export default ({smushData}) => {
<div className="sui-box-header">
<h3 className="sui-box-title">
{__('Local WebP', 'wp-smushit')}
<div className="sui-box-body">
<div className="sui-message">
src={smushData.urls.freeImg}
srcSet={smushData.urls.freeImg2x + ' 2x'}
alt={__('Smush WebP', 'wp-smushit')}
<div className="sui-message-content">
'Fix the "Serve images in next-gen format" Google PageSpeed recommendation with a single click! Serve WebP images directly from your server to supported browsers, while seamlessly switching to original images for those without WebP support. All without relying on a CDN or any server configuration.',
<ol className="sui-upsell-list">
className="sui-icon-check sui-sm"
'Activate the Local WebP feature with a single click; no server configuration required.',
className="sui-icon-check sui-sm"
'Fix “Serve images in next-gen format" Google PageSpeed recommendation.',
className="sui-icon-check sui-sm"
'Serve WebP version of images in the browsers that support it and fall back to JPEGs and PNGs for unsupported browsers.',
<p className="sui-margin-top">
href={smushData.urls.upsell}
className="sui-button sui-button-purple"
style={{marginRight: '30px'}}
tracker.track( 'local_webp_upsell', {
Location: 'local_webp_page',
{__('UNLOCK WEBP WITH PRO', 'wp-smushit')}