"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 Toolbar
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolbarItemUtilities = void 0;
/** Helper class to create toolbar items.
 * @beta
 */
var ToolbarItemUtilities;
(function (ToolbarItemUtilities) {
    /** Creates an action item. */
    function createActionItem(id, itemPriority, icon, label, execute, overrides) {
        return {
            id,
            itemPriority,
            icon,
            label,
            execute,
            ...overrides,
        };
    }
    ToolbarItemUtilities.createActionItem = createActionItem;
    /** Creates a group item. */
    function createGroupItem(id, itemPriority, icon, label, items, overrides) {
        return {
            id,
            itemPriority,
            icon,
            label,
            items,
            ...overrides,
        };
    }
    ToolbarItemUtilities.createGroupItem = createGroupItem;
    /** Creates a custom item. */
    function createCustomItem(id, itemPriority, icon, label, panelContent, overrides) {
        return {
            id,
            itemPriority,
            icon,
            label,
            panelContent,
            ...overrides,
        };
    }
    ToolbarItemUtilities.createCustomItem = createCustomItem;
})(ToolbarItemUtilities = exports.ToolbarItemUtilities || (exports.ToolbarItemUtilities = {}));
//# sourceMappingURL=ToolbarItemUtilities.js.map