Function: DefaultProductSurcharges()
DefaultProductSurcharges(
props):Element|null
Defined in: components/defaults/DefaultProductSurcharges.tsx:18
Default surcharges renderer for the extension API.
Standalone implementation of the ProductSurchargesComponentProps contract
— accepts either a product (PDP surcharges from product.surcharges) or
a cartItem (line-item surcharges) and renders them as a stacked list
with formatted amounts via core-ui's formatSurcharge.
Used as the fallback when ProductInfo or CartItem has no
surchargesComponent injected.
Parameters
props
ProductSurchargesComponentProps
Returns
Element | null