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