import { ProgressStepper, ProgressStep } from '@patternfly/react-core';
import RhUiInProgressIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-in-progress-icon';
import RhUiPendingIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-pending-icon';

export const ProgressStepperCustomIcons: React.FunctionComponent = () => (
  <ProgressStepper aria-label="Progress stepper with custom icons">
    <ProgressStep
      variant="success"
      id="custom-step1"
      titleId="custom-step1-title"
      aria-label="completed step, step with success"
    >
      Successful completion
    </ProgressStep>
    <ProgressStep
      isCurrent
      icon={<RhUiInProgressIcon />}
      id="custom-step2"
      titleId="custom-step2-title"
      aria-label="in progress"
    >
      In process
    </ProgressStep>
    <ProgressStep
      variant="pending"
      icon={<RhUiPendingIcon />}
      id="custom-step3"
      titleId="custom-step3-title"
      aria-label="pending step"
    >
      Pending
    </ProgressStep>
  </ProgressStepper>
);
