"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ExpandItems = void 0;
var _react = _interopRequireDefault(require("react"));
var _ = require("../../../../..");
var _ExpandItem = require("./ExpandItem");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ExpandItems = exports.ExpandItems = function ExpandItems(_ref) {
  var items = _ref.items;
  return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_.Media, {
    query: function query(t) {
      return t.media.lessThan(t.breakpoints.md);
    }
  }, _react.default.createElement(_.List, null, items === null || items === void 0 ? void 0 : items.map(function (item, index) {
    return _react.default.createElement(_ExpandItem.ExpandItem, {
      key: "expandItem_mobile_".concat(index + 1),
      item: item,
      mobileItem: true
    });
  }))), _react.default.createElement(_.Media, {
    query: function query(t) {
      return t.media.greaterThan(t.breakpoints.md);
    }
  }, _react.default.createElement(_.Flexbox, {
    container: true,
    wrap: "wrap",
    gap: 10,
    as: _.List
  }, items === null || items === void 0 ? void 0 : items.map(function (item, index) {
    return _react.default.createElement(_ExpandItem.ExpandItem, {
      key: "expandItem_desktop_".concat(index + 1),
      item: item
    });
  }))));
};