import { getDimensions } from "./utils";
export default (function (_ref) {
  var theme = _ref.theme,
    padding = _ref.padding;
  if (!padding) return "";
  if (Array.isArray(padding) && padding.length >= 1 && padding.length <= 4) {
    return "padding: " + getDimensions(theme, padding) + ";";
  }

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