/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Button } from '@wordpress/components'; import { SelectControl } from '@woocommerce/components'; import { Icon, chevronDown } from '@wordpress/icons'; import { useState } from '@wordpress/element'; /** * Internal dependencies */ import { CoreProfilerStateMachineContext } from '../index'; import { BusinessLocationEvent } from '../events'; import { CountryStateOption } from '../services/country'; import { Heading } from '../components/heading/heading'; import { Navigation } from '../components/navigation/navigation'; export const BusinessLocation = ( { sendEvent, navigationProgress, context, }: { sendEvent: ( event: BusinessLocationEvent ) => void; navigationProgress: number; context: Pick< CoreProfilerStateMachineContext, 'countries' >; } ) => { const [ storeCountry, setStoreCountry ] = useState< CountryStateOption >( { key: '', label: '', } ); const inputLabel = __( 'Select country/region', 'woocommerce' ); return (