New generic icon to replace data().getImage()

This commit is contained in:
Philipp Stracker 2025-01-28 18:43:43 +01:00
parent c50a1c30ab
commit 235ff308f5
No known key found for this signature in database
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import React from 'react';
const GenericIcon = ( { imageName, className = '', alt = '' } ) => {
const pathToImages = global.ppcpSettings.assets.imagesUrl;
return (
<img
className={ className }
alt={ alt }
src={ `${ pathToImages }${ imageName }` }
/>
);
};
export default GenericIcon;

View file

@ -1,3 +1,4 @@
export { default as PPIcon } from './GenericIcon';
export { default as OpenSignup } from './OpenSignup';
export { default as LogoPayPal } from './LogoPayPal';