"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createMessageRendererRegistry = createMessageRendererRegistry;
exports.registerMessageRenderer = registerMessageRenderer;
exports.getMessageRenderer = getMessageRenderer;
exports.mergeMessageRendererRegistries = mergeMessageRendererRegistries;
function createMessageRendererRegistry() {
    return {};
}
function registerMessageRenderer(registry, contentType, renderer) {
    Object.assign(registry, {
        [contentType]: renderer,
    });
    return registry;
}
function getMessageRenderer(registry, contentType) {
    var _a;
    return (_a = registry[contentType]) === null || _a === void 0 ? void 0 : _a.component;
}
function mergeMessageRendererRegistries(defaultRegistry, customRegistry) {
    return Object.assign(Object.assign({}, defaultRegistry), customRegistry);
}
//# sourceMappingURL=messageTypeRegistry.js.map
