"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.useIsToolSettingsTab = void 0;
const LayoutStore_1 = require("../base/LayoutStore");
const Widget_1 = require("./Widget");
/** @internal */
function useIsToolSettingsTab() {
    const activeTabId = (0, Widget_1.useActiveTabId)();
    const toolSettingsTabId = (0, LayoutStore_1.useLayout)((state) => state.toolSettings?.tabId);
    return activeTabId === toolSettingsTabId;
}
exports.useIsToolSettingsTab = useIsToolSettingsTab;
//# sourceMappingURL=useIsToolSettingsTab.js.map