Debian Codegraph @

node/@patternfly/react-core/dist/js/deprecated/components/Wizard/WizardFooterInternal.js

raw
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.WizardFooterInternal = void 0;
4 const tslib_1 = require("tslib");
5 const jsx_runtime_1 = require("react/jsx-runtime");
6 const react_styles_1 = require("@patternfly/react-styles");
7 const wizard_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Wizard/wizard"));
8 const Button_1 = require("../../../components/Button");
9 const ActionList_1 = require("../../../components/ActionList");
10 const WizardFooterInternal = ({ onNext, onBack, onClose, isValid, firstStep, activeStep, nextButtonText, backButtonText, cancelButtonText }) => ((0, jsx_runtime_1.jsx)("footer", { className: (0, react_styles_1.css)(wizard_1.default.wizardFooter), children: (0, jsx_runtime_1.jsxs)(ActionList_1.ActionList, { children: [(0, jsx_runtime_1.jsxs)(ActionList_1.ActionListGroup, { children: [!activeStep.hideBackButton && ((0, jsx_runtime_1.jsx)(ActionList_1.ActionListItem, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, { variant: Button_1.ButtonVariant.secondary, onClick: onBack, isDisabled: firstStep, children: backButtonText }) })), (0, jsx_runtime_1.jsx)(ActionList_1.ActionListItem, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, { variant: Button_1.ButtonVariant.primary, type: "submit", onClick: onNext, isDisabled: !isValid, children: nextButtonText }) })] }), !activeStep.hideCancelButton && ((0, jsx_runtime_1.jsx)(ActionList_1.ActionListGroup, { children: (0, jsx_runtime_1.jsx)(ActionList_1.ActionListItem, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, { variant: Button_1.ButtonVariant.link, onClick: onClose, children: cancelButtonText }) }) }))] }) }));
11 exports.WizardFooterInternal = WizardFooterInternal;
12 exports.WizardFooterInternal.displayName = 'WizardFooterInternal';
13 //# sourceMappingURL=WizardFooterInternal.js.map