/** * WordPress Dependencies */ import { useContext } from '@wordpress/element'; import { OneClickContext } from './store/context'; /** * Internal Dependencies */ import Step1 from './Step1'; import Step2 from './Step2'; import Step3 from './Step3'; import StepWrapper from './StepWrapper'; export default function Metabox() { const { showMetabox, currentStep } = useContext( OneClickContext ); const { metabox } = advancedAds.oneclick; if ( ! showMetabox ) { return null; } return (

{ metabox.title }

{ 1 === currentStep && ( ) } { 2 === currentStep && ( ) } { 3 === currentStep && ( ) }
); }