: 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 { SelectControl } from '@wordpress/components';
import withMetaData from '../../utils/withMetaData';
usePostBackgroundMessage,
} from '../../iframe/useBackgroundApp';
import { ProxyMessages } from '../../iframe/integratedMessages';
interface IUISidebarSelectControlProps {
const UISidebarSelectControl = (props: IUISidebarSelectControlProps) => {
const isBackgroundAppReady = useBackgroundAppContext();
const monitorSidebarMetaChange = usePostBackgroundMessage();
if (props.setMetaValue) {
props.setMetaValue(content);
monitorSidebarMetaChange({
key: ProxyMessages.TrackSidebarMetaChange,
export default withMetaData(UISidebarSelectControl);