mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
20 lines
394 B
JavaScript
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;
|