2021-10-26 08:40:35 +00:00
|
|
|
/**
|
|
|
|
* 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">
|
2021-11-12 10:32:27 +00:00
|
|
|
<GetPaid className="svg-background" />
|
2021-10-26 08:40:35 +00:00
|
|
|
<div className="woocommerce-task-header__contents">
|
2022-03-30 09:00:04 +00:00
|
|
|
<h1>{ __( 'Choose payment methods', 'woocommerce' ) }</h1>
|
2021-10-26 08:40:35 +00:00
|
|
|
<p>
|
|
|
|
{ __(
|
|
|
|
'Choose payment providers and enable payment methods at checkout',
|
2022-03-30 09:00:04 +00:00
|
|
|
'woocommerce'
|
2021-10-26 08:40:35 +00:00
|
|
|
) }
|
|
|
|
</p>
|
|
|
|
<Button
|
|
|
|
isSecondary={ task.isComplete }
|
|
|
|
isPrimary={ ! task.isComplete }
|
|
|
|
onClick={ goToTask }
|
|
|
|
>
|
2022-03-30 09:00:04 +00:00
|
|
|
{ __( 'Set up payments', 'woocommerce' ) }
|
2021-10-26 08:40:35 +00:00
|
|
|
</Button>
|
|
|
|
<p className="woocommerce-task-header__timer">
|
|
|
|
<img src={ TimerImage } alt="Timer" />{ ' ' }
|
|
|
|
<span>{ task.time }</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
2021-10-20 16:16:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default PaymentsHeader;
|