29 lines
571 B
TypeScript
29 lines
571 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import './style.scss';
|
|
import { SiteVisibilityTour } from '../tour';
|
|
import { useSiteVisibilityTour } from '../tour/use-site-visibility-tour';
|
|
|
|
export const LaunchYourStoreStatus = () => {
|
|
const { showTour, setShowTour, onClose, shouldTourBeShown } =
|
|
useSiteVisibilityTour();
|
|
|
|
return (
|
|
<div className="woocommerce-lys-status">
|
|
{ shouldTourBeShown && showTour && (
|
|
<SiteVisibilityTour
|
|
onClose={ () => {
|
|
onClose();
|
|
setShowTour( false );
|
|
} }
|
|
/>
|
|
) }
|
|
</div>
|
|
);
|
|
};
|