/*---------------------------------------------------------------------------------------------
* 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
 */
import "./Toolbars.scss";
import * as React from "react";
import { useActiveFrontstageDef } from "../frontstage/Frontstage";
/** @internal */
export function WidgetPanelsToolbars() {
    const frontstageDef = 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));
}
//# sourceMappingURL=Toolbars.js.map