woocommerce/plugins/woocommerce-admin/client/two-column-tasks/headers/payments.js

42 lines
1.0 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 className="svg-background" />
<div className="woocommerce-task-header__contents">
<h1>{ __( 'Choose payment methods', 'woocommerce' ) }</h1>
<p>
{ __(
'Choose payment providers and enable payment methods at checkout',
'woocommerce'
) }
</p>
<Button
isSecondary={ task.isComplete }
isPrimary={ ! task.isComplete }
onClick={ goToTask }
>
{ __( 'Set up payments', 'woocommerce' ) }
</Button>
<p className="woocommerce-task-header__timer">
<img src={ TimerImage } alt="Timer" />{ ' ' }
<span>{ task.time }</span>
</p>
</div>
</div>
);
};
export default PaymentsHeader;