"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 Item
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomItemDef = void 0;
const ActionButtonItemDef_1 = require("./ActionButtonItemDef");
/** An Item that renders a React component.
 * @public
 */
class CustomItemDef extends ActionButtonItemDef_1.ActionButtonItemDef {
    constructor(props) {
        super(props);
        if (props.customId)
            this.customId = props.customId;
        else {
            CustomItemDef._sId++;
            this.customId = CustomItemDef.customIdPrefix + CustomItemDef._sId;
        }
        this.popupPanelNode = props.popupPanelNode;
    }
    get id() {
        return this.customId;
    }
}
CustomItemDef._sId = 0;
CustomItemDef.customIdPrefix = "Custom-";
exports.CustomItemDef = CustomItemDef;
//# sourceMappingURL=CustomItemDef.js.map