UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

36 lines (35 loc) 1.25 kB
import React from 'react'; import { UserBillingInfoMode } from '../../constants/Billing'; import { SCCustomerBillingInfo } from '@selfcommunity/types/src/types'; export interface UserBillingInfoProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; id?: string; inlineDisplay?: boolean; buttonLabel?: JSX.Element; mode?: UserBillingInfoMode; onLoad?: (account: SCCustomerBillingInfo, isCustomerCompleted: boolean) => void; onChange?: (account: SCCustomerBillingInfo) => void; onSave?: (account: SCCustomerBillingInfo) => void; onError?: (error: any) => void; onBack?: () => void; onChangeViewMode?: (mode: UserBillingInfoMode) => void; disableButtons?: boolean; /** * Any other properties */ [p: string]: any; } /** * BillingInfo component interface reference */ export declare type UserBillingInfoRef = { isBillingInfoCompleted: () => boolean; showError: (e: string) => void; billingMode: () => UserBillingInfoMode; }; declare const _default: React.ForwardRefExoticComponent<Pick<UserBillingInfoProps, keyof UserBillingInfoProps> & React.RefAttributes<UserBillingInfoRef>>; export default _default;