"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useReparentPopoutWidget = void 0;
const PreviewFeatures_1 = require("../PreviewFeatures");
/** @internal */
function useReparentPopoutWidget(id) {
    const { reparentPopoutWidgets } = (0, PreviewFeatures_1.usePreviewFeatures)();
    if (reparentPopoutWidgets === true) {
        return true;
    }
    if (Array.isArray(reparentPopoutWidgets) &&
        reparentPopoutWidgets.indexOf(id) >= 0) {
        return true;
    }
    return false;
}
exports.useReparentPopoutWidget = useReparentPopoutWidget;
//# sourceMappingURL=useReparentPopoutWidget.js.map