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';
|
2022-04-27 14:36:39 +00:00
|
|
|
import { WC_ASSET_URL } from '../../utils/admin-settings';
|
2021-10-26 08:40:35 +00:00
|
|
|
|
|
|
|
const PaymentsHeader = ( { task, goToTask } ) => {
|
|
|
|
return (
|
|
|
|
<div className="woocommerce-task-header__contents-container">
|
2022-04-27 14:36:39 +00:00
|
|
|
<img
|
|
|
|
alt={ __( 'Payment illustration', 'woocommerce' ) }
|
|
|
|
src={
|
|
|
|
WC_ASSET_URL + 'images/task_list/payment-illustration.png'
|
|
|
|
}
|
|
|
|
className="svg-background"
|
|
|
|
/>
|
2021-10-26 08:40:35 +00:00
|
|
|
<div className="woocommerce-task-header__contents">
|
2022-04-27 14:36:39 +00:00
|
|
|
<h1>{ __( 'Add a way to get paid', 'woocommerce' ) }</h1>
|
2021-10-26 08:40:35 +00:00
|
|
|
<p>
|
|
|
|
{ __(
|
2022-04-27 14:36:39 +00:00
|
|
|
'Choose from fast & secure online and offline payment methods to make it easy for your customers to pay in your store.',
|
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-04-27 14:36:39 +00:00
|
|
|
{ __( 'View options', '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;
|