/*---------------------------------------------------------------------------------------------
 * 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
 */
import { ActionButtonItemDef } from "./ActionButtonItemDef";
/** An Item that renders a React component.
 * @public
 */
class CustomItemDef extends 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-";
export { CustomItemDef };
//# sourceMappingURL=CustomItemDef.js.map