+
+
+ {item.name}
+ {item?.selectedOptions?.length ? (
+
+ (
+ {item.selectedOptions
+ .flatMap(option => option.values || [])
+ .join(' / ')}
+ )
+
+ ) : null}
+
+
+ {item?.addons?.map(
+ (addon: SelectedAddon, index: number) => (
+
+ {addon.attribute}:
+ {addon.values?.map(value => (
+
+ {value.name}
+
+ ))}
+
)
-
- ) : null}
-
-
- {item?.addons?.map((addon: SelectedAddon, index: number) => (
-
- {addon.attribute}:
- {addon.values?.map(value => (
-
+
+ {t.general.quantity}: {item.quantity}
+ {onRemoveFromCart ? (
+ <>
+ ·{' '}
+
+ {isRemovingFromCart && removingItemId === item.id ? (
+ {t.storefront.removing}
+ ) : (
+ {t.storefront.remove}
+ )}
+
+ >
+ ) : null}
+
+ {item.notes?.length ? (
+
+ {t.lineItems.note}
+ {item.notes?.map(note => (
+ {note.content}
))}
- ))}
-
-
- {t.general.quantity}: {item.quantity}
- {onRemoveFromCart ? (
- <>
- ·{' '}
-
- >
) : null}
-
- {item.notes?.length ? (
-
- {t.lineItems.note}
- {item.notes?.map(note => (
- {note.content}
- ))}
-
+
+ {item.originalPrice != null && item.quantity ? (
+
+
+
+ {formatCurrency({
+ amount: item.originalPrice * item.quantity,
+ currencyCode,
+ inputInMinorUnits,
+ })}
+
+
+
) : null}
- {item.originalPrice != null && item.quantity ? (
-
-
-
- {formatCurrency({
- amount: item.originalPrice * item.quantity,
- currencyCode,
- inputInMinorUnits,
- })}
-
-
-