@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
17 lines (16 loc) • 742 B
TypeScript
import { NotificationTemplates, UnifiedAppNotification } from "../../interfaces/models/AppNotification";
export interface UseAppNotificationsDataProps {
limit?: number;
notificationTemplates?: Partial<NotificationTemplates>;
}
export interface UseAppNotificationsDataValues {
appNotifications: UnifiedAppNotification[];
unreadAppNotificationsCount: number;
loading: boolean;
hasMore: boolean;
loadMore: () => void;
markNotificationAsRead: (notificationId: string) => Promise<void>;
resetAppNotifications: () => Promise<void>;
}
declare function useAppNotificationsData({ limit, notificationTemplates, }: UseAppNotificationsDataProps): UseAppNotificationsDataValues;
export default useAppNotificationsData;