@betterstore/react
Version:
13 lines (12 loc) • 609 B
TypeScript
import { GetCheckoutResponse } from '@betterstore/sdk';
export default function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency, onCancel, exchangeRate, applyDiscountCode, removeDiscount, }: {
appliedDiscounts: GetCheckoutResponse["appliedDiscounts"];
lineItems: GetCheckoutResponse["lineItems"];
shipping?: number | null;
tax?: number | null;
currency: string;
exchangeRate: number;
onCancel: () => void;
applyDiscountCode: (code: string) => Promise<void>;
removeDiscount: (id: string) => Promise<void>;
}): import("react/jsx-runtime").JSX.Element;