import React from 'react';
import { Record } from '../Record';
import { RecordUpdates } from '../RecordUpdates';
export var InteractionRecord = function (_a) {
    var _b;
    var item = _a.item;
    var updates = (_b = item === null || item === void 0 ? void 0 : item.deltaCollection) === null || _b === void 0 ? void 0 : _b.delta;
    return (updates === null || updates === void 0 ? void 0 : updates.length) > 0 ? (React.createElement(Record, null,
        React.createElement(RecordUpdates, { updates: updates, recordId: item.id }))) : null;
};
