"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var makeDirection = function makeDirection(_ref) {
  var column = _ref.column,
    columnReverse = _ref.columnReverse,
    rowReverse = _ref.rowReverse;
  return column || columnReverse ? "bottom" : rowReverse ? "left" : "right";
};
var _default = exports["default"] = function _default(_ref2) {
  var baseUnit = _ref2.theme.constants.SIZE_SUB_UNIT,
    gap = _ref2.gap,
    column = _ref2.column,
    columnReverse = _ref2.columnReverse,
    rowReverse = _ref2.rowReverse;
  if (typeof gap !== "number") {
    return "";
  }
  var direction = makeDirection({
    column: column,
    columnReverse: columnReverse,
    rowReverse: rowReverse
  });
  return "\n    &> *:not(:last-child) {\n      margin-" + direction + ": " + baseUnit * gap + "px;\n    }\n  ";
};