@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
9 lines (8 loc) • 518 B
TypeScript
import type { NotificationItem } from '~/modals/CheckoutModal/TransferToken/types';
/**
* This might not work if multiple instances of this hook are used in the same page
* since it uses sessionStorage to store the processed notifications
*
* Warning: If QR Code screen is open in multiple tabs, cb will be called multiple times (once for each tab) for the same notification.
*/
export declare const useOnNewNotification: (combinedNotifications: NotificationItem[], cb: (item: NotificationItem) => void) => void;