@magicbell/react-headless
Version:
Hooks to build a notification inbox
16 lines (13 loc) • 401 B
text/typescript
import IRemoteNotification from './IRemoteNotification.js';
export type IStrategyComparator = (attribute, rule) => boolean;
export default interface INotificationStore {
context: Record<string, unknown>;
total: number;
totalPages: number;
perPage: number;
currentPage: number;
unreadCount: number;
unseenCount: number;
notifications: IRemoteNotification[];
lastFetchedAt?: Date;
}