import { generateId } from "@intelligentgraphics/ig.utilities";
export var createNotificationCenterSubscription = function (notificationCenter, data) {
    var id = data.id === undefined ? generateId() : data.id;
    var send = function (event, data) { return notificationCenter.send(id, event, data); };
    var destroy = function () { return notificationCenter.unsubscribe(id); };
    return {
        id: id,
        send: send,
        destroy: destroy,
    };
};
