import { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native' import { IButtonStyles } from '../../components/button/types' import { IError } from '../../types' export interface IPurchaseConfirmationProps { orderHash: string onComplete: () => void styles?: IPurchaseConfirmationStyles texts?: IPurchaseConfirmationTexts onFetchPurchaseConfirmationError?: (error: IError) => void onFetchPurchaseConfirmationSuccess?: () => void areActivityIndicatorsEnabled?: boolean areAlertsEnabled?: boolean onLoadingChange?: (isLoading: boolean) => void } export interface IPurchaseConfirmationTexts { title?: string message?: { line1?: string line2?: string } promo?: { discount?: string } invite?: { title?: string message?: string } exitButton?: string } export interface IPurchaseConfirmationStyles { rootContainer?: StyleProp title?: StyleProp message?: { container?: StyleProp line1?: StyleProp line2?: StyleProp } promo?: { container?: StyleProp title?: StyleProp titleKeyword?: StyleProp message?: StyleProp messageKeyword?: StyleProp discount?: StyleProp } invite?: { container?: StyleProp title?: StyleProp message?: StyleProp link?: StyleProp linkContainer?: StyleProp copyIcon?: StyleProp copyButton?: StyleProp } exitButton?: IButtonStyles } export interface IPurchaseConfirmationViewProps { texts?: IPurchaseConfirmationTexts styles?: IPurchaseConfirmationStyles referralLink?: string onComplete: () => void orderHash: string areActivityIndicatorsEnabled?: boolean isLoading?: boolean }