"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports.QuantityList = void 0;

var _taggedTemplateLiteralLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));

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

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _templateObject;

var QuantityList = function QuantityList(_ref) {
  var placeholder = _ref.placeholder;
  var quantityArray = new Array(20).fill(0).map(function (el, i) {
    return i + 1;
  });
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, ' ', /*#__PURE__*/_react["default"].createElement(Size, {
    value: "",
    selected: true,
    disabled: true,
    hidden: true
  }, placeholder), quantityArray.map(function (num) {
    return /*#__PURE__*/_react["default"].createElement(Size, {
      key: "quantity__" + num,
      value: num
    }, num);
  }));
};

exports.QuantityList = QuantityList;

var Size = _styledComponents["default"].option.attrs({
  className: 'py-3 my-3'
})(_templateObject || (_templateObject = (0, _taggedTemplateLiteralLoose2["default"])([""])));
//# sourceMappingURL=index.js.map