Function: OrderBonusItems()
OrderBonusItems(
rawProps):Element|null
Defined in: components/OrderBonusItems.tsx:47
Renders an order's bonus items — free items added through incentives — as a read-only "Bonus items" section (heading + table of OrderItemCard rows).
Bonus items are order items of class === 'product' with isBonus === 'Y'.
The API models the discount as a separate sibling incentive item that
carries the negative delta and points back via parentOrderItemId, so the
product line alone still shows the undiscounted price. Each bonus line is
therefore netted against its incentive siblings before display — a fully
discounted item reaches 0, a partially discounted one keeps the remainder.
Renders nothing when there are no bonus items, so it's safe to drop into any order surface (thank-you, order details, quote details) unconditionally.
currency resolves from <PropellerProvider> via useInfraProps when not
passed explicitly.
Parameters
rawProps
Returns
Element | null