import { __ } from '@wordpress/i18n'; export const UpdateSearchIndexingConfirm = ({ inputs, onConfirm, onCancel, }) => { const willEnable = inputs?.indexing ? inputs.indexing === 'enabled' : Boolean(window.extAgentData?.agentContext?.searchEnginesBlocked); const handleConfirm = () => { onConfirm({ data: { indexing: willEnable ? 'enabled' : 'disabled' }, shouldRefreshPage: true, }); }; return (
{willEnable ? __( 'Search engines will be allowed to index your site. Confirm to let them find it.', 'extendify-local', ) : __( 'Search engines will be asked not to index your site. Visitors can still see it. Confirm to discourage indexing.', 'extendify-local', )}