import { createContext } from 'react' ; import { DeliveryLeadTime , ShippingMethod } from '@commercelayer/sdk' ; export interface InitialShippingMethodContext { shippingMethod ? : ShippingMethod ; deliveryLeadTimeForShipment ? : DeliveryLeadTime ; currentShippingMethodId ? : string ; shipmentId ? : string ; } const initial = { } ; const ShippingMethodChildrenContext = createContext < InitialShippingMethodContext > ( initial ) ; export default ShippingMethodChildrenContext ;