@samepage/internal
Version:
Utilities used across modules - not meant for use by users directly
18 lines • 687 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const dispatchAppEvent_1 = tslib_1.__importDefault(require("./dispatchAppEvent"));
const messageToNotification_1 = tslib_1.__importDefault(require("./messageToNotification"));
const handleSharePageOperation = (data, source, uuid) => {
(0, dispatchAppEvent_1.default)({
type: "notification",
notification: (0, messageToNotification_1.default)({
uuid,
source,
data,
operation: "SHARE_PAGE",
}),
});
};
exports.default = handleSharePageOperation;
//# sourceMappingURL=handleSharePageOperation.js.map