UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

11 lines 1.05 kB
import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/Wizard/wizard'; import { Button, ButtonVariant } from '../Button'; export const WizardFooterInternal = ({ onNext, onBack, onClose, isValid, firstStep, activeStep, nextButtonText, backButtonText, cancelButtonText }) => (React.createElement("footer", { className: css(styles.wizardFooter) }, React.createElement(Button, { variant: ButtonVariant.primary, type: "submit", onClick: onNext, isDisabled: !isValid }, nextButtonText), !activeStep.hideBackButton && (React.createElement(Button, { variant: ButtonVariant.secondary, onClick: onBack, isDisabled: firstStep }, backButtonText)), !activeStep.hideCancelButton && (React.createElement("div", { className: styles.wizardFooterCancel }, React.createElement(Button, { variant: ButtonVariant.link, onClick: onClose }, cancelButtonText))))); WizardFooterInternal.displayName = 'WizardFooterInternal'; //# sourceMappingURL=WizardFooterInternal.js.map