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';
|
|
|
|
import PersonalizeMyStore from './illustrations/personalize-my-store.js';
|
|
|
|
|
|
|
|
const AppearanceHeader = ( { task, goToTask } ) => {
|
|
|
|
return (
|
|
|
|
<div className="woocommerce-task-header__contents-container">
|
2022-02-07 00:50:20 +00:00
|
|
|
<PersonalizeMyStore className="svg-background" />
|
2021-10-26 08:40:35 +00:00
|
|
|
<div className="woocommerce-task-header__contents">
|
|
|
|
<h1>{ __( 'Personalize my store', 'woocommerce-admin' ) }</h1>
|
|
|
|
<p>
|
|
|
|
{ __(
|
|
|
|
'Add your logo, create a homepage, and start designing your store',
|
|
|
|
'woocommerce-admin'
|
|
|
|
) }
|
|
|
|
</p>
|
|
|
|
<Button
|
|
|
|
isSecondary={ task.isComplete }
|
|
|
|
isPrimary={ ! task.isComplete }
|
|
|
|
onClick={ goToTask }
|
|
|
|
>
|
2021-10-27 09:41:34 +00:00
|
|
|
{ task.isComplete
|
|
|
|
? __( 'Modify choices', 'woocommerce-admin' )
|
|
|
|
: __( 'Personalize', 'woocommerce-admin' ) }
|
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 AppearanceHeader;
|