Function: OrderBonusItems()
OrderBonusItems(
rawProps):Element|null
Defined in: components/OrderBonusItems.tsx:45
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' (the free goods) with
isBonus === 'Y' — whether standalone or grouped by the backend under an
incentive item via parentOrderItemId. Any backend-side grouping is
purely presentational; in the flat SDK item list every bonus good is
already product/isBonus === Y, so filtering on that yields the same set.
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