mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
14 lines
418 B
JavaScript
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;
|