"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var getColumnConfig = function getColumnConfig(count, index, renderTwoColumnsInRow) {
  var offset = renderTwoColumnsInRow ? '2' : undefined;
  var offsetForEvenColumn = index % 2 ? undefined : offset;
  var columnSize = {
    all: '4',
    tablet: '6',
    mobile: '12'
  };
  switch (count) {
    case 2:
    case 4:
      return (0, _extends2["default"])((0, _extends2["default"])({}, columnSize), {
        leftOffsetWide: offsetForEvenColumn,
        leftOffsetDesktop: offsetForEvenColumn
      });
    default:
      return (0, _extends2["default"])({}, columnSize);
  }
};
var _default = exports["default"] = getColumnConfig;