2022-05-16 03:59:40 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { getAdminSetting } from '~/utils/admin-settings';
|
|
|
|
|
|
|
|
const onboardingData = getAdminSetting( 'onboarding' );
|
|
|
|
|
2022-05-18 07:24:48 +00:00
|
|
|
/**
|
|
|
|
* Returns true if the merchant has indicated that they have another online shop while filling out the OBW
|
|
|
|
*/
|
2022-05-16 03:59:40 +00:00
|
|
|
export const isImportProductExperiment = () => {
|
|
|
|
return (
|
|
|
|
window?.wcAdminFeatures?.[ 'experimental-import-products-task' ] &&
|
|
|
|
onboardingData?.profile?.selling_venues &&
|
|
|
|
onboardingData?.profile?.selling_venues !== 'no'
|
|
|
|
);
|
|
|
|
};
|