"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.DockedToolSetting = void 0;
require("./Setting.scss");
const classnames_1 = require("classnames");
const React = require("react");
const core_react_1 = require("@itwin/core-react");
const Docked_1 = require("./Docked");
/** Used in a [[DockedToolSettings]] component to display a setting.
 * @internal
 */
function DockedToolSetting(props) {
    const { onResize } = (0, Docked_1.useToolSettingsEntry)();
    const ref = (0, core_react_1.useResizeObserver)(onResize);
    const className = (0, classnames_1.default)("uifw-toolSettings-setting", props.className);
    return (React.createElement("div", { className: className, ref: ref, style: props.style }, props.children));
}
exports.DockedToolSetting = DockedToolSetting;
//# sourceMappingURL=Setting.js.map