UNPKG

@redocly/theme

Version:

Shared UI components lib

17 lines 1.34 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CatalogEntityRelationsLinkedNode = CatalogEntityRelationsLinkedNode; const react_1 = __importDefault(require("react")); const react_2 = require("@xyflow/react"); const Link_1 = require("../../../../components/Link/Link"); const catalog_1 = require("../../../../core/constants/catalog"); const CatalogEntityRelationsNodeContent_1 = require("../../../../components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNodeContent"); function CatalogEntityRelationsLinkedNode({ label, entityType, className, to, }) { return (react_1.default.createElement(Link_1.Link, { className: className, to: to, "data-component-name": "Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode" }, react_1.default.createElement(CatalogEntityRelationsNodeContent_1.CatalogEntityRelationsNodeContent, { entityType: entityType, label: label, isRoot: false }), react_1.default.createElement(react_2.Handle, { type: catalog_1.GraphHandleType.Target, position: react_2.Position.Top, id: catalog_1.GraphHandleType.Target }))); } //# sourceMappingURL=CatalogEntityRelationsLinkedNode.js.map