UNPKG

@dailyshot/notifications

Version:

Notification system based on Dailyshot components

19 lines (16 loc) 785 B
import { createUseExternalEvents } from '@dailyshot/utils'; const [useNotificationsEvents, createEvent] = createUseExternalEvents("dailyshot-notifications"); const showNotification = createEvent("show"); const hideNotification = createEvent("hide"); const cleanNotifications = createEvent("clean"); const cleanNotificationsQueue = createEvent("cleanQueue"); const updateNotification = createEvent("update"); const notifications = { show: showNotification, hide: hideNotification, clean: cleanNotifications, cleanQueue: cleanNotificationsQueue, update: updateNotification }; export { cleanNotifications, cleanNotificationsQueue, createEvent, hideNotification, notifications, showNotification, updateNotification, useNotificationsEvents }; //# sourceMappingURL=events.js.map