UNPKG

@funkit/connect

Version:

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

18 lines (17 loc) 896 B
import React, { type ReactNode } from 'react'; export interface FunCountdownProps { countdownSeconds: number; initialRemainingSeconds?: number; counterSize?: number; strokeWidth?: number; onCountdownEnded?: () => void; onBeforeCountdownEndsSeconds?: number; onBeforeCountdownEnds?: () => void; onCountdownLastSecond?: () => void; children?: ReactNode | ((remainingSeconds: number) => ReactNode); isHidden?: boolean; isPaused?: boolean; /** Optional component to be used instead of the countdown after it ends */ delayedComponent?: ReactNode; } export declare const FunCountdown: ({ countdownSeconds, initialRemainingSeconds, counterSize, onCountdownEnded, onBeforeCountdownEnds, onBeforeCountdownEndsSeconds, onCountdownLastSecond, strokeWidth, isHidden, isPaused, children, delayedComponent, }: FunCountdownProps) => React.JSX.Element | null;