woocommerce-paypal-payments/modules/ppcp-settings/resources/js/utils/data.js
2024-10-23 08:56:47 +02:00

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;