"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 StatusBar
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.StatusBarItemUtilities = void 0;
const StatusBarItem_1 = require("./StatusBarItem");
/** Utility functions for creating and maintaining StatusBar items.
 * @public
 */
var StatusBarItemUtilities;
(function (StatusBarItemUtilities) {
    /** Creates a StatusBar item to perform an action.
     * @beta
     */
    function createActionItem(id, section, itemPriority, icon, tooltip, execute, overrides) {
        return {
            id,
            section,
            itemPriority,
            icon,
            tooltip,
            execute,
            ...overrides,
        };
    }
    StatusBarItemUtilities.createActionItem = createActionItem;
    /** Creates a StatusBar item to display a label.
     * @beta
     */
    function createLabelItem(id, section, itemPriority, icon, label, labelSide = StatusBarItem_1.StatusBarLabelSide.Right, overrides) {
        return {
            id,
            section,
            itemPriority,
            icon,
            label,
            labelSide,
            ...overrides,
        };
    }
    StatusBarItemUtilities.createLabelItem = createLabelItem;
    /** Creates a StatusBar item to display a custom content.
     * @beta
     */
    function createCustomItem(id, section, itemPriority, content, overrides) {
        return {
            id,
            section,
            itemPriority,
            content,
            ...overrides,
        };
    }
    StatusBarItemUtilities.createCustomItem = createCustomItem;
})(StatusBarItemUtilities || (exports.StatusBarItemUtilities = StatusBarItemUtilities = {}));
//# sourceMappingURL=StatusBarItemUtilities.js.map