"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PotentialMatchRecord = void 0;
var react_1 = __importDefault(require("react"));
var EntityObject_1 = require("../EntityObject");
var PotentialMatchField_1 = require("./components/PotentialMatchField");
var Record_1 = require("../Record");
var RecordLabel_1 = require("../RecordLabel");
var PotentialMatchRecord = function (_a) {
    var item = _a.item;
    var _b = item.data, potentialMatches = _b.potentialMatches, newUri = _b.newUri;
    return potentialMatches || newUri ? (react_1.default.createElement(Record_1.Record, null,
        react_1.default.createElement(RecordLabel_1.RecordLabel, null,
            react_1.default.createElement(EntityObject_1.EntityObject, { item: item })),
        react_1.default.createElement(PotentialMatchField_1.PotentialMatchField, { item: item }))) : null;
};
exports.PotentialMatchRecord = PotentialMatchRecord;
