46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { Button } from '@wordpress/components';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import TimerImage from './timer.svg';
|
|
import { WC_ASSET_URL } from '../../utils/admin-settings';
|
|
|
|
const TaxHeader = ( { task, goToTask } ) => {
|
|
return (
|
|
<div className="woocommerce-task-header__contents-container">
|
|
<img
|
|
alt={ __( 'Tax illustration', 'woocommerce' ) }
|
|
src={ WC_ASSET_URL + 'images/task_list/tax-illustration.png' }
|
|
className="svg-background"
|
|
/>
|
|
<div className="woocommerce-task-header__contents">
|
|
<h1>{ __( 'Add your tax rates', 'woocommerce' ) }</h1>
|
|
<p>
|
|
{ __(
|
|
'Set up tax rates manually or use WooCommerce and Jetpack to automate your sales tax calculations for you.',
|
|
'woocommerce'
|
|
) }
|
|
</p>
|
|
<Button
|
|
isSecondary={ task.isComplete }
|
|
isPrimary={ ! task.isComplete }
|
|
onClick={ goToTask }
|
|
>
|
|
{ __( 'Yes, please', 'woocommerce' ) }
|
|
</Button>
|
|
<p className="woocommerce-task-header__timer">
|
|
<img src={ TimerImage } alt="Timer" />{ ' ' }
|
|
<span>{ task.time }</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TaxHeader;
|