/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Button, ExternalLink } from '@wordpress/components'; import { Pill } from '@woocommerce/components'; import { getNewPath, navigateTo } from '@woocommerce/navigation'; import { recordEvent } from '@woocommerce/tracks'; import { useLayoutContext } from '@woocommerce/admin-layout'; /** * Internal dependencies */ import './woocommerce-services-item.scss'; import WooIcon from './woo-icon.svg'; const WooCommerceServicesItem: React.FC< { isWCSInstalled: boolean | undefined; } > = ( { isWCSInstalled } ) => { const { layoutString } = useLayoutContext(); const handleSetupClick = () => { recordEvent( 'tasklist_click', { task_name: 'shipping-recommendation', context: `${ layoutString }/wc-settings`, } ); navigateTo( { url: getNewPath( { task: 'shipping-recommendation' }, '/', {} ), } ); }; return (