import React from 'react';
import { EntityObject } from '../EntityObject';
import { PotentialMatchField } from './components/PotentialMatchField';
import { Record } from '../Record';
import { RecordLabel } from '../RecordLabel';
export var PotentialMatchRecord = function (_a) {
    var item = _a.item;
    var _b = item.data, potentialMatches = _b.potentialMatches, newUri = _b.newUri;
    return potentialMatches || newUri ? (React.createElement(Record, null,
        React.createElement(RecordLabel, null,
            React.createElement(EntityObject, { item: item })),
        React.createElement(PotentialMatchField, { item: item }))) : null;
};
