2021-01-28 14:24:01 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import classnames from 'classnames';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2022-12-15 14:17:22 +00:00
|
|
|
import { createSlotFill } from '../../slot';
|
2021-01-28 14:24:01 +00:00
|
|
|
|
|
|
|
const slotName = '__experimentalOrderShippingPackages';
|
2021-02-08 11:37:55 +00:00
|
|
|
const {
|
|
|
|
Fill: ExperimentalOrderShippingPackages,
|
|
|
|
Slot: OrderShippingPackagesSlot,
|
|
|
|
} = createSlotFill( slotName );
|
2021-01-28 14:24:01 +00:00
|
|
|
|
2021-04-08 12:31:12 +00:00
|
|
|
const Slot = ( {
|
|
|
|
className,
|
|
|
|
noResultsMessage,
|
|
|
|
renderOption,
|
|
|
|
extensions,
|
|
|
|
cart,
|
|
|
|
components,
|
2022-02-22 09:33:52 +00:00
|
|
|
context,
|
2022-12-15 14:17:22 +00:00
|
|
|
collapsible,
|
|
|
|
showItems,
|
2021-04-08 12:31:12 +00:00
|
|
|
} ) => {
|
2021-01-28 14:24:01 +00:00
|
|
|
return (
|
|
|
|
<OrderShippingPackagesSlot
|
|
|
|
className={ classnames(
|
|
|
|
'wc-block-components-shipping-rates-control',
|
|
|
|
className
|
|
|
|
) }
|
|
|
|
fillProps={ {
|
2022-12-15 14:17:22 +00:00
|
|
|
collapse: collapsible,
|
2021-01-28 14:24:01 +00:00
|
|
|
collapsible,
|
2022-12-15 14:17:22 +00:00
|
|
|
showItems,
|
2021-01-28 14:24:01 +00:00
|
|
|
noResultsMessage,
|
|
|
|
renderOption,
|
|
|
|
extensions,
|
|
|
|
cart,
|
2021-04-08 12:31:12 +00:00
|
|
|
components,
|
2022-02-22 09:33:52 +00:00
|
|
|
context,
|
2021-01-28 14:24:01 +00:00
|
|
|
} }
|
|
|
|
/>
|
|
|
|
);
|
2021-02-08 11:37:55 +00:00
|
|
|
};
|
2021-01-28 14:24:01 +00:00
|
|
|
|
|
|
|
ExperimentalOrderShippingPackages.Slot = Slot;
|
|
|
|
|
|
|
|
export default ExperimentalOrderShippingPackages;
|