"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InteractionRecord = void 0;
var react_1 = __importDefault(require("react"));
var Record_1 = require("../Record");
var RecordUpdates_1 = require("../RecordUpdates");
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_1.default.createElement(Record_1.Record, null,
        react_1.default.createElement(RecordUpdates_1.RecordUpdates, { updates: updates, recordId: item.id }))) : null;
};
exports.InteractionRecord = InteractionRecord;
