Something went wrong. Try again.
A Bsky-like frontend using the atprotocol natively.
Something went wrong. Try again.
350 B · 12 lines
TypeScript
at main
12345678910111213import { useContext } from 'react';import { NotificationCountContext } from './notificationCountContext';
export interface NotificationCount { unreadCount: number; refreshCount: () => Promise<void>; markSeen: () => Promise<void>;}
export function useNotificationCount(): NotificationCount { return useContext(NotificationCountContext);}