import React from 'react';
import classnames from 'classnames';
import { getLabel } from '@reltio/mdm-sdk';
import { EntityUriLink } from '../../../EntityUriLink';
import { ActivityTypes } from '../types';
import { useStyles } from './styles';
export var EntityObject = function (_a) {
    var item = _a.item;
    var styles = useStyles();
    var objectLabel = item.objectLabel, objectUri = item.objectUri, data = item.data;
    var isRemoved = (data === null || data === void 0 ? void 0 : data.type) === ActivityTypes.ENTITY_REMOVED;
    return (React.createElement(EntityUriLink, { className: classnames(styles.link, { removed: isRemoved }), value: objectUri }, getLabel(objectLabel)));
};
