Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

367 B
Raw Blame
import { useContext } from "react"
import { ShippingOptionPriceContext } from "./shipping-option-price-context"

export const useShippingOptionPrice = () => {
  const context = useContext(ShippingOptionPriceContext)

  if (!context) {
    throw new Error(
      "useShippingOptionPrice must be used within a ShippingOptionPriceProvider"
    )
  }

  return context
}