/** * WordPress Dependencies */ import { decodeEntities } from '@wordpress/html-entities'; import { useContext, useState } from '@wordpress/element'; /** * Internal Dependencies */ import Modal from './Modal'; import Settings from './Settings'; import { OneClickContext } from './store/context'; export default function Step3() { const { step3 } = advancedAds.oneclick; const [ open, toggleModal ] = useState( false ); const { selectedMethod, selectedPage } = useContext( OneClickContext ); const onClose = () => toggleModal( false ); return ( <>

{ String.format( decodeEntities( step3.yourDomain ), advancedAds.oneclick.options.connectedDomain ) }

{ 'final' === selectedMethod && (

) }
{ 'page' === selectedMethod && (
{ step3.title }
{ ! selectedPage ? (
) : (

) }

{ selectedPage > 0 && ( { advancedAds.oneclick.modal.btnGoto } ) }

) } ); }