"use strict";
/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Widget
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.FloatingWidgets = void 0;
const React = require("react");
const FloatingWidget_1 = require("./FloatingWidget");
const FloatingTab_1 = require("./FloatingTab");
const LayoutStore_1 = require("../base/LayoutStore");
/** This component renders all floating widgets.
 * @internal
 */
function FloatingWidgets() {
    const ids = (0, LayoutStore_1.useLayout)((state) => state.floatingWidgets.allIds);
    return (React.createElement(React.Fragment, null,
        ids.map((id) => {
            return React.createElement(FloatingWidget_1.FloatingWidgetProvider, { key: id, id: id });
        }),
        React.createElement(FloatingTab_1.FloatingTab, null)));
}
exports.FloatingWidgets = FloatingWidgets;
//# sourceMappingURL=FloatingWidgets.js.map