import _extends from "@babel/runtime/helpers/extends";
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 _extends(_extends({}, columnSize), {
        leftOffsetWide: offsetForEvenColumn,
        leftOffsetDesktop: offsetForEvenColumn
      });
    default:
      return _extends({}, columnSize);
  }
};
export default getColumnConfig;