@commercelayer/react-components
Version:
The Official Commerce Layer React Components
17 lines (16 loc) • 678 B
TypeScript
import { type JSX } from "react";
import type { LoaderType } from "../../typings/index";
import type { PaymentSourceProps } from "../payment_source/PaymentSource";
export type GatewayBaseType = Props & {
show: boolean;
loading: boolean;
loaderComponent: JSX.Element;
};
type Props = PaymentSourceProps & {
showCard: boolean;
handleEditClick: (e: MouseEvent) => void;
show: boolean;
loader?: LoaderType;
};
export declare function PaymentGateway({ readonly, showCard, handleEditClick, children, templateCustomerCards, templateCustomerSaveToWallet, onClickCustomerCards, show, loader, ...p }: Props): JSX.Element | null;
export default PaymentGateway;