2021-06-17 08:35:24 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { ALLOWED_COUNTRIES } from '@woocommerce/block-settings';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import CountryInput from './country-input';
|
|
|
|
import type { CountryInputProps } from './CountryInputProps';
|
|
|
|
|
|
|
|
const BillingCountryInput = ( props: CountryInputProps ): JSX.Element => {
|
2024-07-12 21:17:54 +00:00
|
|
|
// TODO - are errorMessage and errorId still relevant when select always has a value?
|
|
|
|
const { errorMessage: _, errorId: __, ...restOfProps } = props;
|
|
|
|
|
|
|
|
return <CountryInput countries={ ALLOWED_COUNTRIES } { ...restOfProps } />;
|
2021-06-17 08:35:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BillingCountryInput;
|