@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
21 lines (20 loc) • 770 B
TypeScript
import React, { type ReactNode } from 'react';
interface FunNotificationProps {
type?: FunNotificationType;
description: ReactNode;
actionText?: string;
onAction?: () => void;
isVisible?: boolean;
testId?: string;
}
export type FunNotificationType = 'default' | 'error' | 'warning' | 'hint';
export interface ErrorNotification {
message: ReactNode;
type: FunNotificationType;
}
/**
* A notification/message component with height resizing animation.
* Control visibility by enabling/disabling `isVisible` prop instead of doing an outer conditional rendering.
*/
export declare function FunNotification({ type, description, actionText, onAction, isVisible: isVisibleProps, testId, }: FunNotificationProps): React.JSX.Element;
export {};