@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
21 lines (20 loc) • 1.09 kB
TypeScript
import { type AnimationProps } from 'motion/react';
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;
/** Animation props to controll how the coundown is replaced with the delayedComponent */
motionProps?: AnimationProps;
}
export declare const FunCountdown: ({ countdownSeconds, initialRemainingSeconds, counterSize, onCountdownEnded, onBeforeCountdownEnds, onBeforeCountdownEndsSeconds, onCountdownLastSecond, strokeWidth, isHidden, isPaused, children, delayedComponent, motionProps, }: FunCountdownProps) => React.JSX.Element | null;