"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntityObject = void 0;
var react_1 = __importDefault(require("react"));
var classnames_1 = __importDefault(require("classnames"));
var mdm_sdk_1 = require("@reltio/mdm-sdk");
var EntityUriLink_1 = require("../../../EntityUriLink");
var types_1 = require("../types");
var styles_1 = require("./styles");
var EntityObject = function (_a) {
    var item = _a.item;
    var styles = (0, styles_1.useStyles)();
    var objectLabel = item.objectLabel, objectUri = item.objectUri, data = item.data;
    var isRemoved = (data === null || data === void 0 ? void 0 : data.type) === types_1.ActivityTypes.ENTITY_REMOVED;
    return (react_1.default.createElement(EntityUriLink_1.EntityUriLink, { className: (0, classnames_1.default)(styles.link, { removed: isRemoved }), value: objectUri }, (0, mdm_sdk_1.getLabel)(objectLabel)));
};
exports.EntityObject = EntityObject;
