48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { Button } from '@wordpress/components';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import TimerImage from './timer.svg';
|
|
import GetPaid from './illustrations/get-paid';
|
|
|
|
const PaymentsHeader = ( { task, goToTask } ) => {
|
|
return (
|
|
<div className="woocommerce-task-header__contents-container">
|
|
<GetPaid
|
|
class="svg-background"
|
|
style={ {
|
|
right: '6%',
|
|
bottom: '-20px',
|
|
} }
|
|
/>
|
|
<div className="woocommerce-task-header__contents">
|
|
<h1>{ __( 'Choose payment methods', 'woocommerce-admin' ) }</h1>
|
|
<p>
|
|
{ __(
|
|
'Choose payment providers and enable payment methods at checkout',
|
|
'woocommerce-admin'
|
|
) }
|
|
</p>
|
|
<Button
|
|
isSecondary={ task.isComplete }
|
|
isPrimary={ ! task.isComplete }
|
|
onClick={ goToTask }
|
|
>
|
|
{ __( 'Set up payments', 'woocommerce-admin' ) }
|
|
</Button>
|
|
<p className="woocommerce-task-header__timer">
|
|
<img src={ TimerImage } alt="Timer" />{ ' ' }
|
|
<span>{ task.time }</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default PaymentsHeader;
|