"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _utils = require("./utils");
var _default = exports["default"] = function _default(_ref) {
  var theme = _ref.theme,
    margin = _ref.margin;
  if (!margin) return "";
  if (Array.isArray(margin) && margin.length >= 1 && margin.length <= 4) {
    return "margin: " + (0, _utils.getDimensions)(theme, margin) + ";";
  }

  // eslint-disable-next-line no-console
  console.error("Please provide an array (max 4 elements) for `margin` style helper.");
  return "";
};