diff --git a/packages/checkout/components/index.js b/packages/checkout/components/index.js index eb12c946a46..66f7233175b 100644 --- a/packages/checkout/components/index.js +++ b/packages/checkout/components/index.js @@ -3,6 +3,7 @@ export { default as TotalsWrapper } from './totals-wrapper'; export { default as ExperimentalOrderMeta } from './order-meta'; export { default as ExperimentalDiscountsMeta } from './discounts-meta'; export { default as ExperimentalOrderShippingPackages } from './order-shipping-packages'; +export { default as ExperimentalOrderLocalPickupPackages } from './order-local-pickup-packages'; export { default as Panel } from './panel'; export { default as Button } from './button'; export { default as Label } from './label'; diff --git a/packages/checkout/components/order-local-pickup-packages/index.tsx b/packages/checkout/components/order-local-pickup-packages/index.tsx new file mode 100644 index 00000000000..ef07b6d5fb0 --- /dev/null +++ b/packages/checkout/components/order-local-pickup-packages/index.tsx @@ -0,0 +1,56 @@ +/** + * External dependencies + */ +import classnames from 'classnames'; +import { + Cart, + CartShippingPackageShippingRate, +} from '@woocommerce/type-defs/cart'; +import { Component } from '@wordpress/element'; +import { RadioControlOption } from '@woocommerce/base-components/radio-control/types'; + +/** + * Internal dependencies + */ +import { createSlotFill } from '../../slot'; + +const slotName = '__experimentalOrderLocalPickupPackages'; +const { + Fill: ExperimentalOrderLocalPickupPackages, + Slot: OrderLocalPickupPackagesSlot, + // eslint-disable-next-line @typescript-eslint/naming-convention +} = createSlotFill( slotName ); + +interface ExperimentalOrderLocalPickupPackagesProps { + extensions: Record< string, unknown >; + cart: Cart; + components: Record< string, Component >; + renderPickupLocation: ( + option: CartShippingPackageShippingRate, + packageCount: number + ) => RadioControlOption; +} +const Slot = ( { + extensions, + cart, + components, + renderPickupLocation, +}: ExperimentalOrderLocalPickupPackagesProps ) => { + return ( + + ); +}; + +ExperimentalOrderLocalPickupPackages.Slot = Slot; + +export default ExperimentalOrderLocalPickupPackages;