@magicbell/react-headless
Version:
Hooks to build a notification inbox
8 lines • 369 B
JavaScript
import useNotificationFactory from './useNotificationFactory.js';
import useNotificationUnmount from './useNotificationUnmount.js';
export default function useNotification(data, onUnmount) {
const notification = useNotificationFactory(data);
useNotificationUnmount(notification, onUnmount);
return notification;
}
//# sourceMappingURL=useNotification.js.map