UNPKG

@betterstore/react

Version:

E-commerce for Developers

14 lines (13 loc) 594 B
import { CheckoutSession, LineItem } from "@betterstore/sdk"; import React from "react"; export default function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency, onCancel, exchangeRate, applyDiscountCode, removeDiscount, }: { appliedDiscounts: CheckoutSession["appliedDiscounts"]; lineItems: LineItem[]; shipping?: number | null; tax?: number | null; currency: string; exchangeRate: number; onCancel: () => void; applyDiscountCode: (code: string) => Promise<void>; removeDiscount: (id: string) => Promise<void>; }): React.JSX.Element;