/** * External dependencies */ import { compose } from '@wordpress/compose'; /** * Internal dependencies */ import ProfileWizard from '../profile-wizard'; import withSelect from 'wc-api/with-select'; import { isOnboardingEnabled } from 'dashboard/utils'; const Homepage = ( { profileItems, query } ) => { if ( isOnboardingEnabled() && ! profileItems.completed ) { return ; } return
Hello World
; }; export default compose( withSelect( ( select ) => { if ( ! isOnboardingEnabled() ) { return; } const { getProfileItems } = select( 'wc-api' ); const profileItems = getProfileItems(); return { profileItems }; } ) )( Homepage );