@magicbell/react-headless
Version:
Hooks to build a notification inbox
20 lines (19 loc) • 1.46 kB
text/typescript
export { default as MagicBellProvider } from './components/MagicBellProvider/index.js';
export { default as RealtimeListener } from './components/RealtimeListener.js';
export { default as WebPushNotificationsSubscriber } from './components/WebPushNotificationsSubscriber/index.js';
export { default as useBell } from './hooks/useBell.js';
export { default as useMagicBellEvent } from './hooks/useMagicBellEvent.js';
export { default as useNotification } from './hooks/useNotification.js';
export { default as useNotificationFactory } from './hooks/useNotificationFactory.js';
export { default as useNotifications } from './hooks/useNotifications.js';
export { default as useNotificationUnmount } from './hooks/useNotificationUnmount.js';
export { deleteAPI, fetchAPI, postAPI, putAPI } from './lib/ajax.js';
export { secondsToDate, toDate, toUnix } from './lib/date.js';
export { eventAggregator, pushEventAggregator } from './lib/realtime.js';
export { default as clientSettings } from './stores/clientSettings.js';
export { default as useConfig } from './stores/config/index.js';
export { default as useNotificationPreferences } from './stores/notification_preferences/index.js';
export { default as buildStore } from './stores/notifications/helpers/buildStore.js';
export { useNotificationStoresCollection } from './stores/notifications/index.js';
export * from './types/index.js';
export { type INotification as Notification } from './types/index.js';