import { usePreviewFeatures } from "../PreviewFeatures";
/** @internal */
export function useReparentPopoutWidget(id) {
    const { reparentPopoutWidgets } = usePreviewFeatures();
    if (reparentPopoutWidgets === true) {
        return true;
    }
    if (Array.isArray(reparentPopoutWidgets) &&
        reparentPopoutWidgets.indexOf(id) >= 0) {
        return true;
    }
    return false;
}
//# sourceMappingURL=useReparentPopoutWidget.js.map