"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 Item
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.WidgetPanelsToolbars = void 0;
require("./Toolbars.scss");
const React = require("react");
const Frontstage_1 = require("../frontstage/Frontstage");
/** @internal */
function WidgetPanelsToolbars() {
    const frontstageDef = (0, Frontstage_1.useActiveFrontstageDef)();
    let toolsWidget = frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.contentManipulation;
    if (frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.topLeft) { // eslint-disable-line deprecation/deprecation
        toolsWidget = frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.topLeft.getSingleWidgetDef(); // eslint-disable-line deprecation/deprecation
    }
    let navigationWidget = frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.viewNavigation;
    if (frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.topRight) { // eslint-disable-line deprecation/deprecation
        navigationWidget = frontstageDef === null || frontstageDef === void 0 ? void 0 : frontstageDef.topRight.getSingleWidgetDef(); // eslint-disable-line deprecation/deprecation
    }
    const tools = toolsWidget === null || toolsWidget === void 0 ? void 0 : toolsWidget.reactNode;
    const navigation = navigationWidget === null || navigationWidget === void 0 ? void 0 : navigationWidget.reactNode;
    return (React.createElement("div", { className: "uifw-widgetPanels-toolbars" },
        tools,
        navigation));
}
exports.WidgetPanelsToolbars = WidgetPanelsToolbars;
//# sourceMappingURL=Toolbars.js.map