@brizy/media-gallery
Version:
23 lines (22 loc) • 912 B
JavaScript
import * as React from "react";
import { Notification } from "@brizy/ui/lib/Notification";
export var GlobalNotifications = function(param) {
var notifications = param.notifications, onClose = param.onClose;
return /*#__PURE__*/ React.createElement("div", {
className: "brz-media-gallery-global-notifications"
}, /*#__PURE__*/ React.createElement(Notification, {
position: "bottomCenter",
onClose: onClose,
offsetY: "88px",
notifications: notifications.map(function(param) {
var key = param.key, message = param.message, type = param.type, _param_duration = param.duration, duration = _param_duration === void 0 ? 5000 : _param_duration;
return {
id: key,
text: message,
type: type,
duration: duration,
closable: true
};
})
}));
};