UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

29 lines (28 loc) 1.63 kB
import type { DirectExecution } from '@funkit/api-base'; import React from 'react'; import { type TextConfigStatus, type TextConfigSteps } from '../TransactionStatus/TransactionStatus'; export interface FunDirectExecutionStatusProps { directExecution: DirectExecution | undefined; isActiveCheckout: boolean; customTextConfigStatus?: TextConfigStatus; customTextConfigSteps?: TextConfigSteps; /** * *WARNING*: READ BELOW BEFORE USING THIS! * --- * If provided, will override the default 60 second cutoff for delayed auto trigger. * This MUST only be used when there's an absolutely unavoidable delay in the execution. * For example: it could be used for Bitcoin transactions because of long block confirmation times. * Another example: Coinbase withdrawal that can take couple of minutes to complete. * * In normal cases, you SHOULD NEVER USE THIS to increase the delayed auto trigger cutoff! * As when transaction is delayed it's our fuck up and we must at least acknowledge it * and encourage user to contact support (that's what delayed status does) */ dangerousCustomDelayedAutoTriggerCutoff?: number; /** * By default this component will use hash of direct execution to fetch latest data. * If you want to disable this, set this to true. */ disableAutoUpdate?: boolean; } export declare function FunDirectExecutionStatus({ directExecution, isActiveCheckout, customTextConfigStatus, customTextConfigSteps, dangerousCustomDelayedAutoTriggerCutoff, disableAutoUpdate, }: FunDirectExecutionStatusProps): React.JSX.Element;