2024-10-31 15:03:25 +01:00
|
|
|
import StepWelcome from './StepWelcome';
|
|
|
|
import StepBusiness from './StepBusiness';
|
|
|
|
import StepProducts from './StepProducts';
|
2024-11-25 20:47:13 -04:00
|
|
|
import StepPaymentMethods from './StepPaymentMethods';
|
2024-11-12 15:01:29 +01:00
|
|
|
import StepCompleteSetup from './StepCompleteSetup';
|
2024-10-31 15:03:25 +01:00
|
|
|
|
|
|
|
export const getSteps = ( flags ) => {
|
2024-11-12 15:01:29 +01:00
|
|
|
const allSteps = [
|
|
|
|
StepWelcome,
|
|
|
|
StepBusiness,
|
|
|
|
StepProducts,
|
2024-11-25 20:47:13 -04:00
|
|
|
StepPaymentMethods,
|
2024-11-12 15:01:29 +01:00
|
|
|
StepCompleteSetup,
|
|
|
|
];
|
2024-10-31 15:03:25 +01:00
|
|
|
|
|
|
|
if ( ! flags.canUseCasualSelling ) {
|
|
|
|
return allSteps.filter( ( step ) => step !== StepBusiness );
|
|
|
|
}
|
|
|
|
|
|
|
|
return allSteps;
|
|
|
|
};
|