import React from "react";
import { FEAGlobals } from "../../../../../../common/Globals";
import { onClickA11y } from "../../../../utils";
const LeftNavBottomLinks = ({ showAddAppForm, removeStore, addNewAppFolder, enableQuickComponents }) => {
    const askToRemoveStore = () => {
        FEAGlobals.FSBL.Clients.DialogManager.open("YesNoDialog", {
            monitor: "primary",
            title: "Restore App Launcher?",
            question: "The application will restore the app launcher to its default state.",
            showTimer: false,
            includeNegative: false,
            includeCancel: true,
            showCancelButton: true,
            showNegativeButton: false,
            affirmativeResponseLabel: "Restore",
        }, (err, response) => {
            const { choice } = response;
            if (choice) {
                switch (choice) {
                    case "affirmative":
                        removeStore();
                        return;
                    case "negative":
                    case "cancel":
                    default:
                        return;
                }
            }
        });
    };
    return (React.createElement("div", { className: "advanced-app-launcher-nav-bottom" },
        React.createElement("div", { role: "button", ...onClickA11y(addNewAppFolder), className: "ff-plus-2 complex-menu-action" }, "New Folder"),
        enableQuickComponents && (React.createElement("div", { role: "button", className: "ff-plus-2 complex-menu-action", ...onClickA11y(showAddAppForm) }, "New App")),
        React.createElement("div", { role: "button", className: "ff-arrow-back complex-menu-action", ...onClickA11y(askToRemoveStore) }, "Restore Defaults")));
};
export default LeftNavBottomLinks;
//# sourceMappingURL=LeftNavBottomLinks.js.map