mod-arch-shared
Version:
Shared library for modular architecture micro-frontend projects
10 lines • 619 B
JavaScript
import React, { useContext } from 'react';
import { AlertGroup } from '@patternfly/react-core';
import { NotificationContext } from '../context/NotificationContext';
import ToastNotification from './ToastNotification';
const ToastNotifications = () => {
const { notifications } = useContext(NotificationContext);
return (React.createElement(AlertGroup, { isToast: true, isLiveRegion: true }, notifications.map((notification) => (React.createElement(ToastNotification, { notification: notification, key: notification.id })))));
};
export default ToastNotifications;
//# sourceMappingURL=ToastNotifications.js.map