File "shipping-country-input.js"
Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/base/components/country-input/shipping-country-input.js
File size: 553 bytes
MIME-type: text/x-java
Charset: utf-8
/**
* External dependencies
*/
import PropTypes from 'prop-types';
import { getSetting } from '@woocommerce/settings';
/**
* Internal dependencies
*/
import CountryInput from './country-input.js';
const ShippingCountryInput = ( props ) => {
return (
<CountryInput
countries={ getSetting( 'shippingCountries', {} ) }
{ ...props }
/>
);
};
ShippingCountryInput.propTypes = {
onChange: PropTypes.func.isRequired,
className: PropTypes.string,
label: PropTypes.string,
value: PropTypes.string,
};
export default ShippingCountryInput;