"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _TimelineSt = require("./Timeline.st.css.js");
var _Timeline = require("./Timeline.constants");
var _TimelineItem = _interopRequireDefault(require("./TimelineItem"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/Timeline/Timeline.tsx";
function Timeline(_ref) {
  var {
    dataHook,
    items,
    className,
    gap,
    skin
  } = _ref;
  return /*#__PURE__*/_react.default.createElement("ol", {
    className: (0, _TimelineSt.st)(_TimelineSt.classes.root, className),
    "data-hook": dataHook,
    "data-skin": skin,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 9,
      columnNumber: 5
    }
  }, items.map((item, idx) => /*#__PURE__*/_react.default.createElement(_TimelineItem.default, {
    key: idx,
    item: item,
    idx: idx,
    dataHook: "".concat(_Timeline.dataHooks.timelineListEvent, "-").concat(idx),
    gap: gap,
    skin: skin,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 15,
      columnNumber: 9
    }
  })));
}
Timeline.displayName = 'Timeline';
var _default = exports.default = Timeline;
//# sourceMappingURL=Timeline.js.map