"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 Frontstage
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.NestedFrontstage = void 0;
const React = require("react");
const itwinui_icons_react_1 = require("@itwin/itwinui-icons-react");
const CommandItemDef_1 = require("../shared/CommandItemDef");
const UiFramework_1 = require("../UiFramework");
/** Nested Frontstage related classes and commands
 * @public
 * @deprecated in 4.15.0. Use {@link NestedFrontstageAppButton} component instead.
 */
class NestedFrontstage {
    /** Command that returns to the previous Frontstage */
    static get backToPreviousFrontstageCommand() {
        // eslint-disable-next-line deprecation/deprecation
        return new CommandItemDef_1.CommandItemDef({
            commandId: "backToPreviousFrontstage",
            iconSpec: React.createElement(itwinui_icons_react_1.SvgProgressBackwardCircular, null),
            labelKey: "UiFramework:commands.backToPreviousFrontstage",
            execute: async () => {
                await UiFramework_1.UiFramework.frontstages.closeNestedFrontstage();
            },
        });
    }
}
exports.NestedFrontstage = NestedFrontstage;
//# sourceMappingURL=NestedFrontstage.js.map