mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:36:38 +08:00
15 lines
395 B
JavaScript
15 lines
395 B
JavaScript
|
import StepWelcome from './StepWelcome';
|
||
|
import StepBusiness from './StepBusiness';
|
||
|
import StepProducts from './StepProducts';
|
||
|
|
||
|
export const getSteps = ( flags ) => {
|
||
|
console.log( 'Step Flags:', flags );
|
||
|
const allSteps = [ StepWelcome, StepBusiness, StepProducts ];
|
||
|
|
||
|
if ( ! flags.canUseCasualSelling ) {
|
||
|
return allSteps.filter( ( step ) => step !== StepBusiness );
|
||
|
}
|
||
|
|
||
|
return allSteps;
|
||
|
};
|