mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
15 lines
316 B
JavaScript
15 lines
316 B
JavaScript
import data from '../../utils/data';
|
|
|
|
const PaymentMethodIcon = ( props ) => {
|
|
if (
|
|
( Array.isArray( props.icons ) &&
|
|
props.icons.includes( props.type ) ) ||
|
|
props.icons === 'all'
|
|
) {
|
|
return data().getImage( 'icon-button-' + props.type + '.svg' );
|
|
}
|
|
|
|
return <></>;
|
|
};
|
|
|
|
export default PaymentMethodIcon;
|