woocommerce-paypal-payments/modules/ppcp-settings/resources/js/Components/ReusableComponents/OnboardingHeader.js
2024-11-05 18:20:04 +04:00

26 lines
733 B
JavaScript

import data from '../../utils/data';
const OnboardingHeader = ( props ) => {
return (
<section className="ppcp-r-onboarding-header">
<div className="ppcp-r-onboarding-header__logo">
<div className="ppcp-r-onboarding-header__logo-wrapper">
{ data().getImage( 'logo-paypal.svg' ) }
</div>
</div>
<div className="ppcp-r-onboarding-header__content">
<h1 className="ppcp-r-onboarding-header__title">
{ props.title }
</h1>
{ props.description && (
<p
className="ppcp-r-onboarding-header__description"
dangerouslySetInnerHTML={ { __html: props.description, } }
></p>
) }
</div>
</section>
);
};
export default OnboardingHeader;