/** * External dependencies */ import { __ } from '@wordpress/i18n'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import Packages from './packages'; import LoadingMask from '../loading-mask'; import './style.scss'; const ShippingRatesControl = ( { shippingRates, shippingRatesLoading, className, collapsibleWhenMultiple = false, noResultsMessage, renderOption, } ) => { return ( 1 && collapsibleWhenMultiple } noResultsMessage={ noResultsMessage } renderOption={ renderOption } shippingRates={ shippingRates } /> ); }; ShippingRatesControl.propTypes = { noResultsMessage: PropTypes.string.isRequired, renderOption: PropTypes.func.isRequired, className: PropTypes.string, collapsibleWhenMultiple: PropTypes.bool, shippingRates: PropTypes.array, shippingRatesLoading: PropTypes.bool, }; export default ShippingRatesControl; export { Packages };