@blocklet/payment-react
Version:
Reusable react components for payment kit v2
15 lines (14 loc) • 645 B
TypeScript
import React from 'react';
import { SxProps } from '@mui/material';
import type { AutoRechargeConfig } from '@blocklet/payment-types';
export interface AutoTopupCardProps {
currencyId: string;
onConfigChange?: (config: AutoRechargeConfig) => void;
sx?: SxProps;
mode?: 'default' | 'simple' | 'custom';
children?: (openModal: () => void, config: AutoRechargeConfig | null, paymentData: {
paymentInfo: any;
balanceInfo: any;
} | null, loading: boolean) => React.ReactNode;
}
export default function AutoTopupCard({ currencyId, onConfigChange, sx, mode, children, }: AutoTopupCardProps): JSX.Element | null;