2019-08-29 16:41:04 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2021-04-27 15:14:42 +00:00
|
|
|
import { LocalPayments } from './LocalPayments';
|
|
|
|
import { RemotePayments } from './RemotePayments';
|
2021-02-16 21:08:35 +00:00
|
|
|
|
2021-04-14 19:26:50 +00:00
|
|
|
export const Payments = ( { query } ) => {
|
2021-04-27 15:14:42 +00:00
|
|
|
if ( window.wcAdminFeatures[ 'remote-payment-methods' ] ) {
|
|
|
|
return <RemotePayments 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;
|