mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
♻️ Organize some reusable components
This commit is contained in:
parent
c7b80b6cd5
commit
47294ca530
30 changed files with 152 additions and 141 deletions
|
@ -0,0 +1,21 @@
|
|||
import classNames from 'classnames';
|
||||
|
||||
const Title = ( {
|
||||
children,
|
||||
altStyle = false,
|
||||
big = false,
|
||||
className = '',
|
||||
} ) => {
|
||||
const elementClasses = classNames(
|
||||
'ppcp-r-settings-block__title',
|
||||
className,
|
||||
{
|
||||
'style-alt': altStyle,
|
||||
'style-big': big,
|
||||
}
|
||||
);
|
||||
|
||||
return <span className={ elementClasses }>{ children }</span>;
|
||||
};
|
||||
|
||||
export default Title;
|
Loading…
Add table
Add a link
Reference in a new issue