/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Icon, moreVertical, edit, cog } from '@wordpress/icons'; import { Dropdown, Button, MenuGroup, MenuItem } from '@wordpress/components'; import { getAdminLink } from '@woocommerce/settings'; import classnames from 'classnames'; /** * Internal dependencies */ import './style.scss'; import { useComingSoonEditorLink } from '../hooks/use-coming-soon-editor-link'; 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 [ commingSoonPageLink ] = useComingSoonEditorLink(); return (
( ) } renderContent={ () => ( <> { __( 'Manage site visibility', 'woocommerce' ) } { isComingSoon && ( { __( 'Customize "Coming soon" page', 'woocommerce' ) } ) } ) } />
); };