2021-09-21 19:33:44 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2022-04-26 20:03:30 +00:00
|
|
|
import { getAdminSetting } from '~/utils/admin-settings';
|
|
|
|
|
2021-09-21 19:33:44 +00:00
|
|
|
import './PaymentGatewaySuggestions';
|
|
|
|
import './shipping';
|
|
|
|
import './Marketing';
|
|
|
|
import './appearance';
|
|
|
|
import './connect';
|
|
|
|
import './tax';
|
|
|
|
import './woocommerce-payments';
|
|
|
|
import './purchase';
|
2022-04-26 05:28:15 +00:00
|
|
|
|
2022-04-26 20:03:30 +00:00
|
|
|
const onboardingData = getAdminSetting( 'onboarding' );
|
|
|
|
|
2022-04-26 05:28:15 +00:00
|
|
|
if (
|
2022-04-26 20:03:30 +00:00
|
|
|
window.wcAdminFeatures &&
|
|
|
|
window.wcAdminFeatures[ 'experimental-import-products-task' ] &&
|
|
|
|
onboardingData?.profile?.selling_venues &&
|
|
|
|
onboardingData?.profile?.selling_venues !== 'no'
|
|
|
|
) {
|
|
|
|
import( './experimental-import-products' );
|
|
|
|
} else if (
|
2022-04-26 05:28:15 +00:00
|
|
|
window.wcAdminFeatures &&
|
|
|
|
window.wcAdminFeatures[ 'experimental-products-task' ]
|
|
|
|
) {
|
|
|
|
import( './experimental-products' );
|
|
|
|
} else {
|
|
|
|
import( './products' );
|
|
|
|
}
|