2019-08-29 16:41:04 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2021-04-27 15:14:42 +00:00
|
|
|
import { LocalPayments } from './LocalPayments';
|
2021-06-08 17:40:57 +00:00
|
|
|
import { PaymentGatewaySuggestions } from './PaymentGatewaySuggestions';
|
2021-02-16 21:08:35 +00:00
|
|
|
|
2021-04-14 19:26:50 +00:00
|
|
|
export const Payments = ( { query } ) => {
|
2021-06-08 17:40:57 +00:00
|
|
|
if ( window.wcAdminFeatures[ 'payment-gateway-suggestions' ] ) {
|
|
|
|
return <PaymentGatewaySuggestions query={ query } />;
|
2021-04-14 19:26:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-27 15:14:42 +00:00
|
|
|
return <LocalPayments query={ query } />;
|
2021-04-14 19:26:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Payments;
|