import { __ } from '@wordpress/i18n';
import { useMemo } from '@wordpress/element';
import { CommonHooks, OnboardingHooks } from '../../../../data';
import { OptionSelector } from '../../../ReusableComponents/Fields';
import PricingDescription from '../Components/PricingDescription';
import OnboardingHeader from '../Components/OnboardingHeader';
import PaymentFlow from '../Components/PaymentFlow';
const StepPaymentMethods = () => {
const { optionalMethods, setOptionalMethods } =
OnboardingHooks.useOptionalPaymentMethods();
const { isCasualSeller } = OnboardingHooks.useBusiness();
const optionalMethodTitle = useMemo( () => {
// The BCDC flow does not show a title.
if ( isCasualSeller ) {
return null;
}
return __(
'Available with additional application',
'woocommerce-paypal-payments'
);
}, [ isCasualSeller ] );
const methodChoices = [
{
value: true,
title: optionalMethodTitle,
description: