"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.PopoutWidgets = void 0;
const React = require("react");
const LayoutStore_1 = require("../../layout/base/LayoutStore");
const Widget_1 = require("../../layout/widget/Widget");
const PopoutWidget_1 = require("./PopoutWidget");
/** This component renders all popout widgets.
 * @internal
 */
function PopoutWidgets() {
    const ids = (0, LayoutStore_1.useLayout)((state) => state.popoutWidgets.allIds);
    return (React.createElement(React.Fragment, null, ids.map((id) => {
        return (React.createElement(Widget_1.WidgetProvider, { key: id, id: id },
            React.createElement(PopoutWidget_1.PopoutWidget, null)));
    })));
}
exports.PopoutWidgets = PopoutWidgets;
//# sourceMappingURL=PopoutWidgets.js.map