woocommerce-paypal-payments/modules/ppcp-settings/resources/js/Components/ReusableComponents/Elements/Title.js
2025-01-22 15:08:14 +01:00

20 lines
394 B
JavaScript

import classNames from 'classnames';
const Title = ( { children, noCaps = false, big = false, className = '' } ) => {
if ( ! children ) {
return null;
}
const elementClasses = classNames(
'ppcp-r-settings-block__title',
className,
{
'ppcp--no-caps': noCaps,
'ppcp--big': big,
}
);
return <span className={ elementClasses }>{ children }</span>;
};
export default Title;