mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
29 lines
703 B
JavaScript
29 lines
703 B
JavaScript
import data from '../../utils/data';
|
|
|
|
const SettingsCard = ( props ) => {
|
|
let className = 'ppcp-r-settings-card';
|
|
|
|
if ( props?.className ) {
|
|
className += ' ' + props.className;
|
|
}
|
|
return (
|
|
<div className={ className }>
|
|
<div className="ppcp-r-settings-card__header">
|
|
{ data().getImage( props.icon ) }
|
|
<div className="ppcp-r-settings-card__content-inner">
|
|
<span className="ppcp-r-settings-card__title">
|
|
{ props.title }
|
|
</span>
|
|
<p className="ppcp-r-settings-card__description">
|
|
{ props.description }
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div className="ppcp-r-settings-card__content">
|
|
{ props.children }
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default SettingsCard;
|