CartCost component renders a
Money component with the
cost associated with the
amountType prop. If no
amountType prop is specified, then it defaults to
Example codeAnchor link to section titled "Example code"
||A string type that defines the type of cost needed. Valid values:
||A function that takes an object return by the
Component typeAnchor link to section titled "Component type"
CartCost component is a client component, which means that it renders on the client.
For more information about component types, refer to React Server Components.