import { useContext } from 'react'; import { NotificationCountContext } from './notificationCountContext'; export interface NotificationCount { unreadCount: number; refreshCount: () => Promise; markSeen: () => Promise; } export function useNotificationCount(): NotificationCount { return useContext(NotificationCountContext); }