woocommerce-paypal-payments/modules/ppcp-settings/resources/js/Components/ReusableComponents/WelcomeDocs/WelcomeDocs.js

34 lines
762 B
JavaScript
Raw Normal View History

import { __ } from '@wordpress/i18n';
import PricingDescription from '../PricingDescription';
2024-11-26 15:01:21 +04:00
import AcdcFlow from './AcdcFlow';
import BcdcFlow from './BcdcFlow';
2024-11-12 19:23:30 +04:00
const WelcomeDocs = ( { useAcdc, isFastlane, isPayLater, storeCountry } ) => {
2024-11-26 15:01:21 +04:00
return (
<div className="ppcp-r-welcome-docs">
<h2 className="ppcp-r-welcome-docs__title">
{ __(
`Want to know more about PayPal Payments?`,
'woocommerce-paypal-payments'
) }
</h2>
{ useAcdc ? (
<AcdcFlow
isFastlane={ isFastlane }
isPayLater={ isPayLater }
storeCountry={ storeCountry }
/>
) : (
<BcdcFlow
isPayLater={ isPayLater }
storeCountry={ storeCountry }
/>
) }
<PricingDescription />
2024-11-26 15:01:21 +04:00
</div>
);
2024-11-12 19:23:30 +04:00
};
export default WelcomeDocs;