/*---------------------------------------------------------------------------------------------
* 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
 */
import * as React from "react";
import { StatusBarComposer } from "../statusbar/StatusBarComposer";
import { StatusBarWidgetControl } from "../statusbar/StatusBarWidgetControl";
import { UiFramework } from "../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
 */
export class StatusBarWidgetComposerControl extends StatusBarWidgetControl {
    constructor() {
        super(...arguments);
        this.id = StatusBarWidgetComposerControl.controlId;
    }
    getReactNode() {
        return (React.createElement(StatusBarComposer, { key: UiFramework.frontstages.activeFrontstageId, items: [] }));
    }
}
StatusBarWidgetComposerControl.controlId = "uifw:StatusBarWidgetComposerControl";
//# sourceMappingURL=StatusBarWidgetComposerControl.js.map