main
| 1 | import { createContext } from "react" |
| 2 | import { ConditionalPriceInfo } from "../../types" |
| 3 | |
| 4 | type ShippingOptionPriceContextType = { |
| 5 | onOpenConditionalPricesModal: (info: ConditionalPriceInfo) => void |
| 6 | onCloseConditionalPricesModal: () => void |
| 7 | } |
| 8 | |
| 9 | export const ShippingOptionPriceContext = |
| 10 | createContext<ShippingOptionPriceContextType | null>(null) |