"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.StatusBarWidgetComposerControl = void 0;
const React = require("react");
const StatusBarComposer_1 = require("../statusbar/StatusBarComposer");
const StatusBarWidgetControl_1 = require("../statusbar/StatusBarWidgetControl");
const UiFramework_1 = require("../UiFramework");
/**
 * StatusBarWidgetComposerControl provides status bar to specified [[Frontstage]] that allows status bar items to be populated
 * via UiItemsProviders. See [[StandardStatusbarItemsProvider]] that can be used to populate this status bar with a common
 * set of status fields.
 * @example
 * ```
 *       statusBar={
 *         <Zone
 *           widgets={
 *             [
 *               <Widget isStatusBar={true} control={StatusBarWidgetComposerControl}  />
 *             ]}
 *         />
 *       }
 * ```
 * @public
 */
class StatusBarWidgetComposerControl extends StatusBarWidgetControl_1.StatusBarWidgetControl {
    constructor() {
        super(...arguments);
        this.id = StatusBarWidgetComposerControl.controlId;
    }
    getReactNode() {
        return (React.createElement(StatusBarComposer_1.StatusBarComposer, { key: UiFramework_1.UiFramework.frontstages.activeFrontstageId, items: [] }));
    }
}
exports.StatusBarWidgetComposerControl = StatusBarWidgetComposerControl;
StatusBarWidgetComposerControl.controlId = "uifw:StatusBarWidgetComposerControl";
//# sourceMappingURL=StatusBarWidgetComposerControl.js.map