mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
18 lines
309 B
JavaScript
18 lines
309 B
JavaScript
const data = () => {
|
|
return {
|
|
...global.ppcpSettings,
|
|
getImage( imageName, className = '' ) {
|
|
const pathToImages = global.ppcpSettings.assets.imagesUrl;
|
|
|
|
return (
|
|
<img
|
|
className={ className }
|
|
alt=""
|
|
src={ pathToImages + imageName }
|
|
/>
|
|
);
|
|
},
|
|
};
|
|
};
|
|
|
|
export default data;
|