2020-02-14 12:30:33 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import PropTypes from 'prop-types';
|
2020-02-19 17:14:41 +00:00
|
|
|
import { SHIPPING_STATES } from '@woocommerce/block-settings';
|
2020-02-14 12:30:33 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2020-02-17 11:12:15 +00:00
|
|
|
import StateInput from './state-input.js';
|
2020-02-14 12:30:33 +00:00
|
|
|
|
2020-02-17 11:12:15 +00:00
|
|
|
const ShippingStateInput = ( props ) => {
|
2020-02-19 17:14:41 +00:00
|
|
|
return <StateInput states={ SHIPPING_STATES } { ...props } />;
|
2020-02-14 12:30:33 +00:00
|
|
|
};
|
|
|
|
|
2020-02-17 11:12:15 +00:00
|
|
|
ShippingStateInput.propTypes = {
|
2020-02-14 12:30:33 +00:00
|
|
|
onChange: PropTypes.func.isRequired,
|
|
|
|
className: PropTypes.string,
|
|
|
|
label: PropTypes.string,
|
|
|
|
value: PropTypes.string,
|
|
|
|
};
|
|
|
|
|
2020-02-17 11:12:15 +00:00
|
|
|
export default ShippingStateInput;
|