woocommerce/plugins/woocommerce-blocks/packages/checkout/components/order-shipping-packages/index.js

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;