/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Icon, moreVertical, edit, cog } from '@wordpress/icons'; import { Dropdown, Button, MenuGroup, MenuItem } from '@wordpress/components'; import { getNewPath } from '@woocommerce/navigation'; import { getAdminLink } from '@woocommerce/settings'; import classnames from 'classnames'; /** * Internal dependencies */ import './style.scss'; export const LaunchYourStoreStatus = ( { comingSoon, storePagesOnly } ) => { const isComingSoon = comingSoon && comingSoon === 'yes'; const isStorePagesOnly = isComingSoon && storePagesOnly && storePagesOnly === 'yes'; const comingSoonText = isStorePagesOnly ? __( 'Store coming soon', 'woocommerce' ) : __( 'Site coming soon', 'woocommerce' ); const liveText = __( 'Live', 'woocommerce' ); const dropdownText = isComingSoon ? comingSoonText : liveText; const launchYourStoreLink = new URL( getAdminLink( getNewPath( {}, '/launch-your-store', {} ) ) ); return (