woocommerce/plugins/woocommerce-admin/client/launch-your-store/status/index.tsx

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>
);
};