"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var getFlexId_1 = require("./getFlexId");
function shouldElementBeReplaced(domElement, virtualElement, component) {
    var oldFlexId = getFlexId_1.default(domElement);
    var newFlexId = getFlexId_1.default(virtualElement);
    if (oldFlexId && newFlexId) {
        if (oldFlexId !== newFlexId) {
            return true;
        }
    }
    if (domElement.haiku && domElement.haiku.component) {
        if (domElement.haiku.component !== component) {
            return true;
        }
    }
    return false;
}
exports.default = shouldElementBeReplaced;
//# sourceMappingURL=shouldElementBeReplaced.js.map