@blocklet/payment-react
Version:
Reusable react components for payment kit v2
27 lines (26 loc) • 1.09 kB
TypeScript
import type { TLineItemExpanded, TPaymentCurrency } from '@blocklet/payment-types';
interface ProductItemCardProps {
item: TLineItemExpanded & {
adjustable_quantity?: {
enabled: boolean;
minimum?: number;
maximum?: number;
};
};
currency: TPaymentCurrency | null;
discounts: any[];
exchangeRate: string | null;
onQuantityChange: (itemId: string, qty: number) => Promise<void>;
onUpsell: (fromId: string, toId: string) => Promise<void>;
onDownsell: (priceId: string) => Promise<void>;
trialActive: boolean;
trialDays: number;
t: (key: string, params?: any) => string;
recommended?: boolean;
hideUpsell?: boolean;
isRateLoading?: boolean;
showFeatures?: boolean;
children?: React.ReactNode;
}
export default function ProductItemCard({ item, currency, discounts, exchangeRate, onQuantityChange, onUpsell, onDownsell, trialActive, trialDays, t, recommended, hideUpsell, isRateLoading, showFeatures, children, }: ProductItemCardProps): import("react").JSX.Element;
export {};