2024-03-11 23:50:22 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './style.scss';
|
2024-04-08 08:29:49 +00:00
|
|
|
import { SiteVisibilityTour } from '../tour';
|
|
|
|
import { useSiteVisibilityTour } from '../tour/use-site-visibility-tour';
|
2024-03-11 23:50:22 +00:00
|
|
|
|
2024-08-20 08:36:20 +00:00
|
|
|
export const LaunchYourStoreStatus = () => {
|
2024-04-08 08:29:49 +00:00
|
|
|
const { showTour, setShowTour, onClose, shouldTourBeShown } =
|
|
|
|
useSiteVisibilityTour();
|
2024-04-05 01:26:30 +00:00
|
|
|
|
2024-03-11 23:50:22 +00:00
|
|
|
return (
|
|
|
|
<div className="woocommerce-lys-status">
|
2024-04-08 08:29:49 +00:00
|
|
|
{ shouldTourBeShown && showTour && (
|
|
|
|
<SiteVisibilityTour
|
|
|
|
onClose={ () => {
|
|
|
|
onClose();
|
|
|
|
setShowTour( false );
|
|
|
|
} }
|
|
|
|
/>
|
|
|
|
) }
|
2024-03-11 23:50:22 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|