"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.ViewToolWidgetComposer = void 0;
const classnames_1 = require("classnames");
const React = require("react");
const appui_abstract_1 = require("@itwin/appui-abstract");
const ToolbarComposer_1 = require("../toolbar/ToolbarComposer");
const useUiVisibility_1 = require("../hooks/useUiVisibility");
const NavigationWidgetComposer_1 = require("./NavigationWidgetComposer");
/**
 * ViewToolWidgetComposer composes a Navigation Widget with no tools defined by default. UiItemsProviders
 * must be used to provide tools to populate the toolbars. See [[StandardNavigationToolsProvider]].
 *  @example
 * ```
 * <ViewToolWidgetComposer />
 * ```
 * If no NavigationAid control is to be shown set hideNavigationAid.
 *  * ```
 * <ViewToolWidgetComposer hideNavigationAid />
 * ```
 * @public
 */
function ViewToolWidgetComposer(props) {
    const uiIsVisible = (0, useUiVisibility_1.useUiVisibility)();
    // istanbul ignore next
    const className = (0, classnames_1.default)(!uiIsVisible && "nz-hidden");
    return (React.createElement(NavigationWidgetComposer_1.NavigationWidgetComposer, { className: className, hideNavigationAid: props.hideNavigationAid, horizontalToolbar: React.createElement(ToolbarComposer_1.ToolbarComposer, { items: [], usage: appui_abstract_1.ToolbarUsage.ViewNavigation, orientation: appui_abstract_1.ToolbarOrientation.Horizontal }), verticalToolbar: React.createElement(ToolbarComposer_1.ToolbarComposer, { items: [], usage: appui_abstract_1.ToolbarUsage.ViewNavigation, orientation: appui_abstract_1.ToolbarOrientation.Vertical }) }));
}
exports.ViewToolWidgetComposer = ViewToolWidgetComposer;
//# sourceMappingURL=ViewToolWidgetComposer.js.map