"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 ToolSettings
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.DockedToolSettingsOverflow = void 0;
require("./Overflow.scss");
const classnames_1 = require("classnames");
const React = require("react");
const core_react_1 = require("@itwin/core-react");
const itwinui_react_1 = require("@itwin/itwinui-react");
const itwinui_icons_react_1 = require("@itwin/itwinui-icons-react");
const NineZone_1 = require("../base/NineZone");
/** Entry point to overflown tool settings of [[DockedToolSettings]] component.
 * @internal
 */
exports.DockedToolSettingsOverflow = React.forwardRef(function DockedToolSettingsOverflow(props, ref) {
    const roRef = (0, core_react_1.useResizeObserver)(props.onResize);
    const refs = (0, core_react_1.useRefs)(roRef, ref);
    const className = (0, classnames_1.default)("nz-toolSettings-overflow", props.className);
    const moreToolSettingsTitle = (0, NineZone_1.useLabel)("moreToolSettingsTitle");
    return (React.createElement(itwinui_react_1.IconButton, { className: className, onClick: props.onClick, ref: refs, style: props.style, styleType: "borderless", label: moreToolSettingsTitle },
        React.createElement(itwinui_icons_react_1.SvgMore, null)));
});
//# sourceMappingURL=Overflow.js.map