37 lines
923 B
JavaScript
37 lines
923 B
JavaScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { Button } from '@wordpress/components';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import TimerImage from './timer.svg';
|
|
import AddTaxRates from './illustrations/add-tax-rates.js';
|
|
|
|
const TaxHeader = ( { task, goToTask } ) => {
|
|
return (
|
|
<div className="woocommerce-task-header__contents-container">
|
|
<AddTaxRates className="svg-background" />
|
|
<div className="woocommerce-task-header__contents">
|
|
<h1>{ __( 'Next up, add your tax rates', 'woocommerce' ) }</h1>
|
|
<p>{ task.content }</p>
|
|
<Button
|
|
isSecondary={ task.isComplete }
|
|
isPrimary={ ! task.isComplete }
|
|
onClick={ goToTask }
|
|
>
|
|
{ task.actionLabel }
|
|
</Button>
|
|
<p className="woocommerce-task-header__timer">
|
|
<img src={ TimerImage } alt="Timer" />{ ' ' }
|
|
<span>{ task.time }</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TaxHeader;
|