"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ProgressIndicator = ProgressIndicator;

var _react = _interopRequireDefault(require("react"));

var _carbonComponentsReact = require("carbon-components-react");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function ProgressIndicator(_ref) {
  var currentIndex = _ref.currentIndex,
      steps = _ref.steps;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: "usa-step-indicator",
    "aria-label": "progress"
  }, /*#__PURE__*/_react.default.createElement(_carbonComponentsReact.ProgressIndicator, {
    vertical: false,
    currentIndex: currentIndex
  }, steps.map(function (step) {
    return /*#__PURE__*/_react.default.createElement(_carbonComponentsReact.ProgressStep, {
      label: step.label,
      description: step.description
    });
  })));
}