);
}
/** The bell in the top bar: what the coworkers want you to know, newest first, with the unread count. */
export function NotificationBell() {
const [open, setOpen] = useState(false);
const { items, unread, lastSeen, markAllSeen, error } = useNotifications();
const browser = useBrowserPref();
const count = unread.length;
const shown = items.slice(0, 15);
return (
Notifications
{error ?
Notifications could not be loaded. They will try again shortly.
: shown.length === 0 ?
Nothing new. You'll see it here when a coworker needs you.