@kanalabs/kana-widget-v2
Version:
Kana Widget for cross-chain bridging and swap.
20 lines (19 loc) • 515 B
TypeScript
import { ReactNode } from 'react';
interface NotificationOptions {
message: string;
description?: ReactNode;
duration?: number;
}
export declare enum NotificationType {
Success = "success",
Error = "error",
Info = "info",
Warning = "warning",
Open = "open"
}
interface UseNotification {
showNotification: (type: NotificationType, options: NotificationOptions) => void;
contextHolder: React.ReactNode;
}
export declare const useNotification: () => UseNotification;
export {};