@blocklet/payment-react
Version:
Reusable react components for payment kit v2
20 lines (19 loc) • 639 B
TypeScript
interface FieldConfig {
name: string;
type: string;
required: boolean;
}
interface CustomerInfoCardProps {
form: {
fields: FieldConfig[];
values: Record<string, any>;
onChange: (field: string, value: string | boolean | Record<string, string>) => void;
errors: Partial<Record<string, string>>;
checkValid: () => Promise<boolean>;
validateField: (field: string) => Promise<void>;
prefetched: boolean;
};
isLoggedIn: boolean;
}
export default function CustomerInfoCard({ form, isLoggedIn }: CustomerInfoCardProps): import("react").JSX.Element | null;
export {};