mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
21 lines
522 B
JavaScript
21 lines
522 B
JavaScript
import StepWelcome from './StepWelcome';
|
|
import StepBusiness from './StepBusiness';
|
|
import StepProducts from './StepProducts';
|
|
import StepPaymentMethods from './StepPaymentMethods';
|
|
import StepCompleteSetup from './StepCompleteSetup';
|
|
|
|
export const getSteps = ( flags ) => {
|
|
const allSteps = [
|
|
StepWelcome,
|
|
StepBusiness,
|
|
StepProducts,
|
|
StepPaymentMethods,
|
|
StepCompleteSetup,
|
|
];
|
|
|
|
if ( ! flags.canUseCasualSelling ) {
|
|
return allSteps.filter( ( step ) => step !== StepBusiness );
|
|
}
|
|
|
|
return allSteps;
|
|
};
|