@blocklet/payment-react
Version:
Reusable react components for payment kit v2
29 lines (28 loc) • 1.16 kB
TypeScript
import type { TPaymentCurrency } from '@blocklet/payment-types';
import type { SlippageConfigValue } from '../slippage-config';
interface ExchangeRateData {
rate?: string;
provider_name?: string;
provider_id?: string;
provider_display?: string;
timestamp_ms?: number;
}
interface AutoTopupProductCardProps {
product: any;
price: any;
currency: TPaymentCurrency;
quantity: number;
onQuantityChange: (quantity: number) => void;
maxQuantity?: number;
minQuantity?: number;
creditCurrency: TPaymentCurrency;
exchangeRate?: string | null;
isDynamicPricing?: boolean;
exchangeRateData?: ExchangeRateData | null;
slippageConfig?: SlippageConfigValue | null;
slippagePercent?: number;
onSlippageChange?: (config: SlippageConfigValue) => void;
disabled?: boolean;
}
export default function AutoTopupProductCard({ product, price, currency, quantity, onQuantityChange, maxQuantity, minQuantity, creditCurrency, exchangeRate, isDynamicPricing, exchangeRateData, slippageConfig, slippagePercent, onSlippageChange, disabled, }: AutoTopupProductCardProps): import("react").JSX.Element;
export {};