woocommerce-paypal-payments/modules/ppcp-settings/resources/js/Components/ReusableComponents/TitleBadge.js
2024-11-05 19:21:01 +04:00

14 lines
418 B
JavaScript

const TitleBadge = ( { text, type } ) => {
const className = 'ppcp-r-title-badge ' + `ppcp-r-title-badge--${ type }`;
return <span
className={ className }
dangerouslySetInnerHTML={{
__html: text,
}}
></span>;
};
export const TITLE_BADGE_POSITIVE = 'positive';
export const TITLE_BADGE_NEGATIVE = 'negative';
export const TITLE_BADGE_INFO = 'info';
export default TitleBadge;