/*---------------------------------------------------------------------------------------------
 * 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
 */
import "./Overflow.scss";
import classnames from "classnames";
import * as React from "react";
import { useRefs, useResizeObserver } from "@itwin/core-react";
import { IconButton } from "@itwin/itwinui-react";
import { SvgMore } from "@itwin/itwinui-icons-react";
import { useLabel } from "../base/NineZone";
/** Entry point to overflown tool settings of [[DockedToolSettings]] component.
 * @internal
 */
export const DockedToolSettingsOverflow = React.forwardRef(function DockedToolSettingsOverflow(props, ref) {
    const roRef = useResizeObserver(props.onResize);
    const refs = useRefs(roRef, ref);
    const className = classnames("nz-toolSettings-overflow", props.className);
    const moreToolSettingsTitle = useLabel("moreToolSettingsTitle");
    return (React.createElement(IconButton, { className: className, onClick: props.onClick, ref: refs, style: props.style, styleType: "borderless", label: moreToolSettingsTitle },
        React.createElement(SvgMore, null)));
});
//# sourceMappingURL=Overflow.js.map