52 lines
872 B
JavaScript
52 lines
872 B
JavaScript
/**
|
|
* External dependencies
|
|
*/
|
|
import clsx from 'clsx';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import { createSlotFill } from '../../slot';
|
|
|
|
const slotName = '__experimentalOrderShippingPackages';
|
|
const {
|
|
Fill: ExperimentalOrderShippingPackages,
|
|
Slot: OrderShippingPackagesSlot,
|
|
} = createSlotFill( slotName );
|
|
|
|
const Slot = ( {
|
|
className,
|
|
noResultsMessage,
|
|
renderOption,
|
|
extensions,
|
|
cart,
|
|
components,
|
|
context,
|
|
collapsible,
|
|
showItems,
|
|
} ) => {
|
|
return (
|
|
<OrderShippingPackagesSlot
|
|
className={ clsx(
|
|
'wc-block-components-shipping-rates-control',
|
|
className
|
|
) }
|
|
fillProps={ {
|
|
collapse: collapsible,
|
|
collapsible,
|
|
showItems,
|
|
noResultsMessage,
|
|
renderOption,
|
|
extensions,
|
|
cart,
|
|
components,
|
|
context,
|
|
} }
|
|
/>
|
|
);
|
|
};
|
|
|
|
ExperimentalOrderShippingPackages.Slot = Slot;
|
|
|
|
export default ExperimentalOrderShippingPackages;
|