/*---------------------------------------------------------------------------------------------
 * 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 classnames from "classnames";
import * as React from "react";
import { ToolbarComposer } from "../toolbar/ToolbarComposer";
import { useUiVisibility } from "../hooks/useUiVisibility";
import { NavigationWidgetComposer } from "./NavigationWidgetComposer";
import { ToolbarOrientation, ToolbarUsage } from "../toolbar/ToolbarItem";
/**
 * 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
 */
export function ViewToolWidgetComposer(props) {
    const uiIsVisible = useUiVisibility();
    // istanbul ignore next
    const className = classnames(!uiIsVisible && "nz-hidden");
    return (React.createElement(NavigationWidgetComposer, { className: className, hideNavigationAid: props.hideNavigationAid, horizontalToolbar: React.createElement(ToolbarComposer, { items: [], usage: ToolbarUsage.ViewNavigation, orientation: ToolbarOrientation.Horizontal }), verticalToolbar: React.createElement(ToolbarComposer, { items: [], usage: ToolbarUsage.ViewNavigation, orientation: ToolbarOrientation.Vertical }) }));
}
//# sourceMappingURL=ViewToolWidgetComposer.js.map