@commercelayer/react-components
Version:
The Official Commerce Layer React Components
18 lines (17 loc) • 703 B
TypeScript
import { type ChangeEvent, type JSX } from 'react';
import type { Order, PaymentMethod } from '@commercelayer/sdk';
import type { ChildrenFunction } from '../../typings/index';
interface ChildrenProps extends Omit<Props, 'children'> {
checked: boolean;
handleOnChange: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
}
interface TOnChangeParams {
payment?: PaymentMethod | Record<string, any>;
order?: Order;
}
type Props = {
children?: ChildrenFunction<ChildrenProps>;
onChange?: (params: TOnChangeParams) => void;
} & JSX.IntrinsicElements['input'];
export declare function PaymentMethodRadioButton(props: Props): JSX.Element;
export default PaymentMethodRadioButton;