mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
26 lines
647 B
JavaScript
26 lines
647 B
JavaScript
const Separator = ( props ) => {
|
|
let separatorClass = 'ppcp-r-separator';
|
|
|
|
if ( props?.className ) {
|
|
separatorClass += ' ' + props.className;
|
|
}
|
|
|
|
if ( props.text ) {
|
|
return (
|
|
<div className={ separatorClass }>
|
|
<span className="ppcp-r-separator__line ppcp-r-separator__line--before"></span>
|
|
|
|
<span className="ppcp-r-separator__text">{ props.text }</span>
|
|
<span className="ppcp-r-separator__line ppcp-r-separator__line--after"></span>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<div className={ separatorClass }>
|
|
<span className="ppcp-r-separator__line ppcp-r-separator__line--before"></span>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Separator;
|