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 ShippingHeader = ( { task, goToTask } ) => {
|
|
|
|
return (
|
|
|
|
<div className="woocommerce-task-header__contents-container">
|
2022-04-27 14:36:39 +00:00
|
|
|
<img
|
|
|
|
alt={ __( 'Shipping illustration', 'woocommerce' ) }
|
|
|
|
src={
|
|
|
|
WC_ASSET_URL + 'images/task_list/shipping-illustration.png'
|
|
|
|
}
|
|
|
|
className="svg-background"
|
|
|
|
/>
|
2021-10-26 08:40:35 +00:00
|
|
|
<div className="woocommerce-task-header__contents">
|
|
|
|
<h1>
|
2022-03-30 09:00:04 +00:00
|
|
|
{ __( 'Set up shipping for your store', 'woocommerce' ) }
|
2021-10-26 08:40:35 +00:00
|
|
|
</h1>
|
|
|
|
<p>
|
|
|
|
{ __(
|
2022-04-27 14:36:39 +00:00
|
|
|
'Choose where and how you will ship your products, select shipping methods, and add fixed or calculated rates.',
|
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
|
|
|
{ __( 'Add shipping zones', '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 ShippingHeader;
|