import { useCallback } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; const { homeUrl } = window.extSharedData || {}; export const GeneratePageResult = ({ inputs, onConfirm }) => { const handleConfirm = useCallback(() => { const redirectUrl = inputs.postId ? `${homeUrl}/?page_id=${inputs.postId}` : ''; onConfirm({ redirectUrl }); }, [inputs.postId, onConfirm]); return (

{__( 'The agent has finished creating your page. Press take me there to visit your new page or dismiss to remove this notice.', 'extendify-local', )}

); };