mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
16 lines
367 B
JavaScript
16 lines
367 B
JavaScript
import classNames from 'classnames';
|
|
|
|
const Title = ( { children, noCaps = false, big = false, className = '' } ) => {
|
|
if ( ! children ) {
|
|
return null;
|
|
}
|
|
|
|
const elementClasses = classNames( 'ppcp--title', className, {
|
|
'ppcp--no-caps': noCaps,
|
|
'ppcp--big': big,
|
|
} );
|
|
|
|
return <span className={ elementClasses }>{ children }</span>;
|
|
};
|
|
|
|
export default Title;
|