mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-28 03:09:16 +08:00
17 lines
448 B
JavaScript
17 lines
448 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_PRICING = 'pricing';
|
|
export const TITLE_BADGE_INFO = 'info';
|
|
export default TitleBadge;
|