@redocly/theme
Version:
Shared UI components lib
11 lines • 508 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CatalogEntityRelationCell = CatalogEntityRelationCell;
const constants_1 = require("../../../core/constants");
function CatalogEntityRelationCell({ relationType, relationRole, }) {
if (relationRole === 'source') {
return constants_1.relationTypeMap[constants_1.reverseRelationMap[relationType]];
}
return constants_1.relationTypeMap[relationType];
}
//# sourceMappingURL=CatalogEntityRelationCell.js.map