swap-chat-react
Version:
swap-chat-react-components
20 lines (19 loc) • 590 B
TypeScript
import type { Client, NotificationResponse, EventTypes } from 'web2-mq';
declare type StatusType = {
error: boolean;
loading: boolean;
};
export declare const usePaginatedNotifications: (client: Client) => {
status: StatusType;
notifications: NotificationResponse[];
refreshing: boolean;
unReadCount: number | undefined;
notifyArr: string[];
isContactUpdate: boolean;
loadNextPage: () => Promise<boolean | undefined>;
handleEvent: (props: {
type: EventTypes;
}) => void;
readNotification: () => void;
};
export {};