UNPKG

@blocklet/payment-react

Version:

Reusable react components for payment kit v2

24 lines (23 loc) 840 B
import type { TLineItemExpanded, TPaymentCurrency } from '@blocklet/payment-types'; import React from 'react'; type Props = { item: TLineItemExpanded; items: TLineItemExpanded[]; trialInDays: number; trialEnd?: number; currency: TPaymentCurrency; onUpsell: Function; onDownsell: Function; mode?: 'normal' | 'cross-sell'; children?: React.ReactNode; adjustableQuantity?: { enabled: boolean; minimum?: number; maximum?: number; }; onQuantityChange?: (itemId: string, quantity: number) => void; completed?: boolean; showFeatures?: boolean; }; export default function ProductItem({ item, items, trialInDays, trialEnd, currency, mode, children, onUpsell, onDownsell, completed, adjustableQuantity, onQuantityChange, showFeatures, }: Props): JSX.Element; export {};