@k-link/notifications
Version:
Notification system based on Klink UI components
19 lines (16 loc) • 779 B
JavaScript
import { createUseExternalEvents } from '@k-link/utils';
const [useNotificationsEvents, createEvent] = createUseExternalEvents("k-link-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