@brizy/media-gallery
Version:
24 lines (23 loc) • 740 B
JavaScript
import * as Notifications from "../../containers/GlobalNotifications/types/Actions";
export var notificationKeyPrefix = "project:stockPhotos:queryError:";
export var fetchError = function(message) {
return Notifications.add({
key: "".concat(notificationKeyPrefix, "loadError"),
type: "error",
message: message
});
};
export var importSuccess = function(message) {
return Notifications.add({
key: "".concat(notificationKeyPrefix, "importSuccess"),
type: "success",
message: message
});
};
export var copy = function(t) {
return Notifications.add({
key: "".concat(notificationKeyPrefix, "copy"),
type: "success",
message: t("Link Copied")
});
};